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?