イオンフレームワークでAngularJSを使用する。フロントエンド側 $スコープはAngularJsのリストをHTMLビューで表示する方法は?
スポーツのリストを含むオブジェクトユーザー含ま:
$ scope.user = {スポーツ:{「実行」:真、「サッカー」を:true}}
リストは、ユーザーのリストを含む「一致」という名前のリストであり、各ユーザーにはスポーツがあります。例:
matches = {userA:{...、sports:{"running": "football":true}} userB:{...、sports:{"rugby":true、 "サッカー":真}}
Yフロントエンドには:
<ion-item class="item-thumbnail-left" ng-repeat="match in matches track by match.user.uid">
<img>
<span>{{match.user.firstname}} {{match.user.lastname}}</span>
<h3>{{match.user.position}} - {{match.user.lob}}</h3>
<h3>@{{match.company}}</h3>
<h4>{{match.score}} sport(s): </h4>
<h4 ng-repeat="sport in match.user.sports track by sport.id" style="float: left;">
{{sport.name}}
</h4>
</ion-item>
私は$のscope.userが(各$のscope.matches.userと共通して持っているスポーツを強調したいです例えば、スポーツを赤で色付けしましょう)。
どうすればよいですか?
おかげ