Value of component in IONIC 5

161 Views Asked by At

What is the equivalent code for this in IONIC 5?

JQM Code: var EmployeeID = Apperyio('EMP_IDNo').val();

IONIC 5 Code: ??? let EmployID =

I haven't seen documentation regarding getting the using typescript in Ionic.

1

There are 1 best solutions below

0
Serhii Kulibaba On

To read values of input components in Appery.io apps, based on Ionic 5 you just need to read variables, which are used in the property [(ngModel)] of that input components:

  1. Define the variable enter image description here

  2. Select the input component and set the variable to its [(ngModel)] property

enter image description here

  1. Use the TypeScript to read this variable (value of the input component)

enter image description here