我正在研究一个网格组件,该组件具有将显示为按钮的操作数组
<td *ngFor="let action of actions">
<button type='button' (click)='action.handler()'>{{action.title}}</button>
</td>
当我尝试这个时,我收到以下错误
_v.context.$implicit.handler is not a function
我正在研究一个网格组件,该组件具有将显示为按钮的操作数组
<td *ngFor="let action of actions">
<button type='button' (click)='action.handler()'>{{action.title}}</button>
</td>
当我尝试这个时,我收到以下错误
_v.context.$implicit.handler is not a function