Update for table

This commit is contained in:
2021-03-01 15:45:30 +01:00
parent 80ffcbd5be
commit 61ffaf6db6
16 changed files with 371 additions and 67 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { SearchPage } from 'src/app/pages/search/search.page';
import { Router } from '@angular/router';
@Component({
selector: 'app-header',
@@ -11,7 +12,8 @@ export class HeaderPage implements OnInit {
profile: string = 'mdgpr';
constructor(private modalController: ModalController) {
constructor(private modalController: ModalController,
private router: Router) {
window['header'] = (profile:string) => {
this.profile = profile;
@@ -32,4 +34,7 @@ export class HeaderPage implements OnInit {
return await modal.present();
}
changeRoute(path){
this.router.navigateByUrl(path)
}
}