Call a function on click event in Angular 2

后端 未结 5 1584
难免孤独
难免孤独 2020-12-01 03:53

How to declare a function inside a component (typescript) and call it on a click event in Angular 2? Following is the code for the same functionality in Angular 1 for which

5条回答
提交回复
热议问题