This commit is contained in:
tiago.kayaya
2021-01-07 10:54:11 +01:00
parent e6bb234221
commit 6b70982166
2 changed files with 14 additions and 2 deletions
+13 -1
View File
@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { SearchPage } from 'src/app/pages/search/search.page';
@Component({
selector: 'app-header',
@@ -7,9 +9,19 @@ import { Component, OnInit } from '@angular/core';
})
export class HeaderPage implements OnInit {
constructor() { }
constructor(private modalController: ModalController) { }
ngOnInit() {
}
async openSearch() {
const modal = await this.modalController.create({
component: SearchPage,
cssClass: 'search',
componentProps: {
}
});
return await modal.present();
}
}