我试图使用指令在我的模板中输出一些东西,ng-repeat
但没有得到正确的东西。也许有什么东西不见了
<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>
这是我得到的输出
who is years old.
who is years old.
who is years old.
who is years old.
我可能做错了什么?