I am working on angular-meteor. I have a collection called grace in the following json format
grace: {
"mail-template": {
"new-status": {
"in-progress": {
"name": "demo1",
"description": "this is demo"
},
"pending": {
"name": "demo2",
"description": "this is another demo"
}
}
}
}
Here I am taking in-progress
and pending
as keys, name
and description
as values.
I want to list this inside my html using ng-repeat
. But I didn't get any output and no errors found.
The code I used is
ng-repeat="(key,value) in demoCtrl.formSettings.grace['mail-template']['new-status']"
demoCtrl
is my controller name and formSettings
is name of helpers.
Can somebody clear my code?