Following is my html code,
<tr *ngFor="#c of content|async">
<td> {{c.name}}</td>
<td>{{c.skill}}</td>
</tr>
and in my json,
[{"name":"abc","skill":"xyz"}]
This is working but i need to iterate through this json string as,
var obj = {a: 1, b: 2};
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
var val = obj[key];
console.log(val);
}
}
this code is in javascript I want to do this in typescript.