I want to display a list of shops in an unordered list. I want to exclude "currentShop" from all shops. I wrote something like:
<ul class="dropdown-menu dropdown-menu-default">
<li ng-repeat="shop in user.account.shops | filter:!currentShop}">
<a href="#/profile">
<i class="icon-user"></i> {{shop.name}} </a>
</li>
</ul>
Where am I wrong?
!'currentShop'!in the quotes. Although it depends on whatcurrentShopis I suppose. docs.angularjs.org/api/ng/filter/filter