【发布时间】:2019-11-18 01:12:13
【问题描述】:
当我点击输入类型复选框时,点击或更改事件未触发
HTML代码:
<ul>
<li *ngFor="let category of facet.value">
<div class="checkbox">
<input type="checkbox" name="{{facet.value[0].DisplayFacetName}}"
[(ngModel)]="check" (click)="test($event)">
<label for="{{category.Title}}">{{ category.Title }}</label>
</div>
</li>
</ul>
组件代码:
test(event){
console.log(event);
}
点击事件没有触发,没有错误有什么帮助吗?
【问题讨论】:
-
你能提供更多关于你的组件的上下文吗?
标签: angular