mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
30 lines
632 B
TypeScript
30 lines
632 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { ModalController } from '@ionic/angular';
|
|
import { SearchPage } from 'src/app/pages/search/search.page';
|
|
|
|
@Component({
|
|
selector: 'app-header',
|
|
templateUrl: './header.page.html',
|
|
styleUrls: ['./header.page.scss'],
|
|
})
|
|
export class HeaderPage implements OnInit {
|
|
|
|
constructor(private modalController: ModalController) { }
|
|
|
|
ngOnInit() {
|
|
}
|
|
|
|
async openSearch() {
|
|
const modal = await this.modalController.create({
|
|
component: SearchPage,
|
|
cssClass: 'group-messages',
|
|
componentProps: {
|
|
}
|
|
});
|
|
return await modal.present();
|
|
}
|
|
|
|
|
|
|
|
}
|