【发布时间】:2020-06-03 18:49:01
【问题描述】:
我尝试了以下代码<Button text="hello?" tap="onTap"></Button>,如教程中所示,但 onTap 函数似乎没有执行。
以下代码确实有效。
<Button text="hello?" (tap)="onTap()"></Button>
我的第二个代码块是否存在常规或其他问题?
【问题讨论】:
-
你之前有学过任何 Angular 教程吗?
标签: angular nativescript