[Angular 2] Using events and refs

Posted Answer1215

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Angular 2] Using events and refs相关的知识,希望对你有一定的参考价值。

This lesson shows you how set listen for click events using the (click) syntax. It also covers getting values off of an input using the #ref syntax then passing that value into the onClick event handler.

 

 

以上是关于[Angular 2] Using events and refs的主要内容,如果未能解决你的问题,请参考以下文章

[Angular 2] Using ng-model for two-way binding

[Angular 2] Using ng-for to repeat template elements

*ngFor 如何与 Angular 2 中的模板变量一起工作?

如何从 Angular 2 onDrop 事件中获取文件?

[Vue + TS] Using Route events inside Vue

Using the EventManager