Ion input value to storage variable

Moderator: Support

dtan
Posts: 7
Joined: Tue Sep 01, 2020 7:11 pm

Ion input value to storage variable

Post 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.

Serhii Kulibaba
Posts: 144
Joined: Tue Aug 27, 2013 1:47 pm

Re: Ion input value to storage variable

Post 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");
Post Reply