I am new to Ionic and Angular 2/4. So be patient with me
According to documentation, if I have to use ActionSheetController, I am suppose to pass it in constructor like this.
constructor(public actionSheetCtrl: ActionSheetController) { }
And later use it like this.
let actionSheet = this.actionSheetCtrl.create({})
actionSheet.present()
But what if I want to make it when I want it without passing it in the constructor? I believe I have to create an object like this.
let actionSheet = new ActionSheetController(_app: App, config: Config)
But I am not sure what to pass in as app
and config
attribute.
Thanks.