I am working with a JavaScript Array that contains strings:
for(var i =0; i<db.length; i++)
console.log(db[i]);
When I run the code, the output is as follows:
dbName:rf,dbStatus:true
dbName:rt,dbStatus:false
Now, I am trying to use ng-repeat to loop over the array:
$scope.DBArray = db;
This is how I am trying to do it in HTML:
<ul>
<li ng-repeat = "line in DBArray">
{{line.dbName}} - {{line.dbStatus}}
</li>
</ul>
However, the loop is not working as expected. Any ideas on how to fix it?