美文网首页
User Input

User Input

作者: 迪爷 | 来源:发表于2016-06-21 15:17 被阅读0次

Get user input from a template reference variable
There's another way to get the user data without the $event variable.
Angular has a syntax feature called template reference variables. These variables grant us direct access to an element. We declare a template reference variable by preceding an identifier with a hash/pound character (#).
Here's an example of using a template reference variable to implement a clever keystroke[['kiːstrəʊk]] n. 击键;按键 loopback n. [计] 回送;回路 in an ultra-simple 超简单的template.

相关文章

网友评论

      本文标题:User Input

      本文链接:https://www.haomeiwen.com/subject/yacgdttx.html