我有这个对象
people = [{name: "John", registered: true },{name: "Micky", registered: false },{name: "Carol", registered: true }]
我有这个有角度的 HTML:
<ul>
<li ng-repeat="person in people">
{{person.name}}
<div class="already-registered-icon"> </div>
</li>
</ul>
我的问题是-如何设置仅在用户已注册时才显示已注册图标的条件?
我会想到这样的事情(但我不知道怎么写):
{{if person.registered}}
<div class="already-registered-icon"> </div>
{{end}}