Let's fix that by changing a single line of code:
ng-repeat="(key, db) in databases"
to:
ng-repeat="(key, db) in databases track by key"
function uniqid(){ | |
return String.fromCharCode(65 + Math.floor(Math.random() * 26)); + Date.now(); | |
} |
function readTextFile(file, callback) { | |
var rawFile = new XMLHttpRequest(); | |
rawFile.overrideMimeType('application/json'); | |
rawFile.open('GET', file, true); | |
rawFile.onreadystatechange = function() { | |
if (rawFile.readyState === 4 && rawFile.status == '200') { | |
callback(rawFile.responseText , rawFile.status); | |
} | |
else{ | |
callback('',rawFile.status); |
``` | |
npm install -g bower-update npm-check-updates | |
``` | |
then under your project root run | |
``` | |
npm-check-updates -g // run npm install -g packagename for stuff outdated | |
npm-check-updates -u | |
npm update |
Let's fix that by changing a single line of code:
ng-repeat="(key, db) in databases"
to:
ng-repeat="(key, db) in databases track by key"