generate id angular code example Example: get unique id angular getUniqueId(index) { return this.filterData.subFilter[index].id + index; }