【发布时间】:2018-05-03 08:27:35
【问题描述】:
我是 nativescript 的新手。我想将用户数据存储在我的手机中。为此,我使用了 Couchbase 数据库。现在我的要求是在单击保存按钮时获取 TextField 值。 `
<TextField hint=" firstName " [text]="_fname ">
</TextField>
<TextField hint="lastname " [text]="_lname ">
</TextField>
<button (tap)="save()" class="btn btn-primary active" text="Save"></button>
`
在上面我需要在按钮单击时获取两个 TextField 值。 请解释如何从文本字段访问当前值。提前致谢。
【问题讨论】:
标签: html angular2-nativescript