我从 angular2 和 ionic2 开始;
在 ionic2 中,我有一个按钮,它将调用我的组件的方法。像这样:
<button secondary clear large>
</button>
我应该使用(click)
- angular2 还是- (tap)
ionic2?
像这样:
(click)
<button secondary clear large (click)="pause()">
</button>
(tap)
<button secondary clear large (tap)="pause()">
</button>
有什么区别吗?您可以(tap)
在
http://ionicframework.com/docs/v2/components/#gestures中看到
谢谢。