I am trying to access the value 1 like so.
var m = {
{"name":"name"},
{"contents":[{'one':1,'two':2}]}
};
function MyCtrl($scope) {
$scope.items = m;
$scope.contents = m.contents;
}
{{contents.one}}
{{items.contents.one}}
<li ng-repeat="item in items">{{item.one}}{{item.two}}</li>
None of them works. Please help me out.