【发布时间】:2019-05-07 07:47:55
【问题描述】:
我正在尝试删除数组中的重复值对象但不工作...我认为重复函数工作但没有反映在li 列表中。你能找出我必须改变的地方吗?
我的服务文件:
addComp(Names,c){
this.item.push({ name: Names, componentid: c});
this.uniqueArray = this.removeDuplicates(this.item, "name"); //this line issue
this.item=this.uniqueArray; //this line issue
}
【问题讨论】:
标签: angular typescript angular5 angular6 angular2-services