I have List of objects as follow where I have objects nested inside object. I want to display information using ng-repeat but its not working.
<div ng-repeat="x in customer">
{{x.name}}
</div>
AngularJs code
var myapp=angular.module('myapp',[]);
myapp.controller('MyController',['$scope',function($scope){
$scope.val="this is test";
$scope.customer=
[1:{
name:{
firstname:"",
lastName:""
},
address:{
city:"city",
country:"country",
zipCode:65775
}
},
//other customer data
];
});
for simple object list ng-repeat works well . I am not able to work with complex object where I am getting wrong?.