Files
doneit-web/src/app/shared/header/header.page.ts
T

28 lines
620 B
TypeScript
Raw Normal View History

2020-12-10 11:22:06 +01:00
import { Component, OnInit } from '@angular/core';
2021-01-07 10:54:11 +01:00
import { ModalController } from '@ionic/angular';
import { SearchPage } from 'src/app/pages/search/search.page';
2020-12-10 11:22:06 +01:00
@Component({
selector: 'app-header',
templateUrl: './header.page.html',
styleUrls: ['./header.page.scss'],
})
export class HeaderPage implements OnInit {
2021-01-07 10:54:11 +01:00
constructor(private modalController: ModalController) { }
2020-12-10 11:22:06 +01:00
ngOnInit() {
}
2021-01-07 10:54:11 +01:00
async openSearch() {
const modal = await this.modalController.create({
component: SearchPage,
cssClass: 'search',
componentProps: {
}
});
return await modal.present();
}
2020-12-10 11:22:06 +01:00
}