0
Ich bin neu in angular2 und frage mich, ob es eine Alternative zu $$hashKey
in angular2 gibt.
Ich habe $$hashKey
in angularjs zum Identifizieren von Objekten verwendet.
für 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);
also ich möchte dafür in angular2 eine Alternative.
irgendwelche Eingänge?
dank