I have an object as follows:
var obj = {
{
name : 'John',
address : 'hongkong',
company : 'hongkong pvt ltd',
employess : [
'Ravi',
'Kabhi',
'Abhi Nahi'
]
},
{
name : 'Deo',
address : 'China',
company : 'China pvt ltd',
employess : [
'Wong',
'kong',
'Lee'
]
}
}
I'm accessing the object in the following way, But how do I access the array in loops.
<div ng-repeat="o in obj">
<p>{{o.name}}</p>
<p ng-repeat="e in o.employees">
<span>{{e}}</span>
</p>
</div>
This is how i have been doing in jade but I think angular doesn't recognize it. How can I loop through the array?