Expected the operants to be of similar type or anyAngular,Angular报错
Bug背景
Angular项目。
在html中写了下面这一句
<li (click)=changeActive(1) [class.active]="isActive === 1">
export class MenuComponent implements OnInit {
isActive: Numer = 1;
ngOnInit() { }
}
随即[class.a...
原创
2019-11-21 11:27:40 ·
362 阅读 ·
0 评论