import { Component } from "@angular/core" ; import { ModalController , NavController , NavParams } from "@ionic/angular" ; @ Component ( { selector : "page-set-label" , templateUrl : "set-label.html" , } ) export class SetLabelPage { public label ; constructor ( public navCtrl , public navParams , public modalCtrl ) { this . label = this . navParams . get ( "label" ) || "" ; } closeModal ( ) { this . modalCtrl . dismiss ( ) ; } submitForm ( ) { this . modalCtrl . dismiss ( this . label , "submit" ) ; } }