Am trying to output some stuff in my template using directive ng-repeat
and am not getting the right thing. Perhaps there is something am missing
<div ng-init="friends = [
{name:'John', age:25, gender:'boy'},
{name:'Jessie', age:30, gender:'girl'},
{name:'Johanna', age:28, gender:'girl'},
{name:'Joy', age:15, gender:'girl'}
]">
<li class="animate-repeat" ng-repeat="friend in friends" >
{{friend.name}} who is {{friend.age}} years old.
</li>
This is the output I get
who is years old.
who is years old.
who is years old.
who is years old.
What could I be doing wrong?