Im trying to run ng-repeat
on this obj to display "settings"
:
var settingsTest = {
"id": "2",
"active": "1",
"settings": {
"action":0,
"somestaff":0,
"message":0,
"mouth":0,
"heost":0,
"gaming":0,
"live.live":0,
"notifications": 0,
"profile": 0
}
};
And here is HTML to display it:
<ul>
<li ng-repeat="(name, value) in settingsTest['settings'] | orderBy: 'name'">
</li>
</ul>
At the end it gives me an error that the message has to be a string.