import { Component , OnInit } from '@angular/core' ; import { NavController } from '@ionic/angular' ; @ Component ( { selector : 'popmenu' , templateUrl : './popmenu.component.html' , styleUrls : [ './popmenu.component.scss' ] } ) export class PopmenuComponent implements OnInit { openMenu : Boolean = false ; constructor ( public navCtrl ) { } ngOnInit ( ) { } togglePopupMenu ( ) { return this . openMenu = ! this . openMenu ; } }