60
rated 0 times
[
64]
[
4]
/ answers: 1 / hits: 22294
/ 5 Years ago, fri, april 5, 2019, 12:00:00
As of today the Ionic 4 documentation on ion-alert contains an example how to add a text input to an alert, like this:
const alert = await this.alertController.create({
inputs: [
{
name: 'name1',
type: 'text'
},
But I can not find out how to access the value from the name1
text input, for example in the button handlers.
Do I have to use something like document.getElementById
or is there a more Ionic/Angular-style way?
More From » ionic4