13
rated 0 times
[
16]
[
3]
/ answers: 1 / hits: 51051
/ 11 Years ago, wed, june 26, 2013, 12:00:00
Using ng-repeat, how would I loop through the following:
var messages : [
{text:Standard Message},
{text:Success Message!, type:success},
{text:Alert Message!, type : alert},
{text:secondary message..., type : secondary}
]
I've tried:
<p ng-repeat=message in messages>{{message}}</p>
and it doesn't seem to work, how would I do this?
More From » angularjs