简体   繁体   中英

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.

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在此处输入图像描述

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

在此处输入图像描述

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM