get unique id angular

JavaScript
getUniqueId(index) {
    return this.filterData.subFilter[index].id + index;
  }
Source

Also in JavaScript: