I am new in angular2 and wondering if there is any alternative to $$hashKey
in angular2.
I used $$hashKey
in angularjs for identifying objects.
for ex.
var arrayItem = {};
for (var key in arrayInstance[0]) {
if (arrayInstance[0].hasOwnProperty(key)) {
console.log('Key ' + key);
if (key != '$$hashKey') {
arrayItem[key] = angular.copy(arrayInstance[0][key]);
}
}
}
arrayInstance.push(arrayItem);
so I want to alternative for this in angular2.
any inputs?
thanks