I am starting with angular2 and ionic2;
In ionic2, I have a button that will call a method of my component. Like this:
<button secondary clear large>
</button>
Should I use (click)
- angular2 OR (tap)
- ionic2?
Like this:
(click)
<button secondary clear large (click)="pause()">
</button>
(tap)
<button secondary clear large (tap)="pause()">
</button>
There are some difference? You can see about (tap)
in
http://ionicframework.com/docs/v2/components/#gestures
Thx.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…