「価格」ラベルをクリックしてスパンタグを表示し、アイテムの最低価格から最高価格ここAngularJS:価格ラベルをクリックして価格を並べ替える場合にのみ、「^」の矢印を表示するには
<th id="tbl-labels" ng-click="orderByMe('price')">Price<span id="small">lowest price</span></th>
フルコントローラーコード
<body ng-app="app" ng-controller="MainController">
<div id="outPopUp">
<svg></svg>
</div>
<p id="search-txt">Search an item</p>
<input id="rounded" text" ng-model="searchfor" />
<div id="container">
<table border="0" width="100%">
<tr>
<th id="tbl-labels" ng-click="orderByMe('product')">Product</th>
<th id="tbl-labels" ng-click="orderByMe('price')">Price<span id="small">lowest price</span></th>
<th id="tbl-labels">Link</th>
</tr>
<tr id="tr-items" ng-repeat="deal in deals | filter:searchfor | orderBy:myOrderBy">
<td id="product">{{deal.product}}</td>
<td id="price">${{deal.price}}</td>
<td id="url">{{deal.link}}</td>
</tr>
</div>
</body>
モデルに 'isOrdered'のようなフラグを設定し、それが真であるかどうかを表示することができます。 –