|
|
1
3
如果方法是控制器的成员,则应使用
下面是一个工作示例: https://stackblitz.com/edit/angular-q2l54d?file=src%2Fapp%2Fapp.component.html |
|
|
2
2
数组和函数必须是组件的类属性。 |