'Value of component in IONIC 5

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.



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Serhii Kulibaba