Suppose we have an object array:
var items = [
{
id: 1,
name: 'name1'
}, {
id: 2,
name: 'name2'
},
{
id: 3,
name: 'name3'
}
];
and we want to iterate over it in HTML using this:
{{ctrl.items}}
expecting this in the UI:
name1, name2, name3
Is this possible? Or do I have to use a ngRepeat for that?
I want to mainly do this to take advantage of the limitTo filter inside the {{}}
ng-repeat, andlimitToworks perfectly fine in anng-repeat.