Page 1 of 1

Ion input value to storage variable

Posted: Fri Nov 27, 2020 5:32 pm
by dtan

How do I set the value of a storage variable to the value of a ion input on the screen? I can't seem to reference the input control in my TypeScript.

Thanks in advance.


Re: Ion input value to storage variable

Posted: Mon Nov 30, 2020 3:27 pm
by Serhii Kulibaba

Hello,

Please set the value to the variable, which you use un the property [(ngModel)] of that component, e.g.:

Code: Select all

this.myVariable = this.Apperyio.data.getVariable("varName");