Can you help me out? I am trying to figure out how to create an IF...ELSE condition using AngularJS on my index.html file:
<ons-list-item modifier="chevron" class="list-item-container" ng-repeat="item in categories track by $index"> <a href="#/parts/{{ item.idold }}">
<ons-row>
<ons-col>
<div class="name">
{{ item.category }} - {{ item.orgs }}
</div>
</ons-col>
<ons-col width="40px"></ons-col>
</ons-row></a>
</ons-list-item>
I need assistance with creating a condition where {{ item.orgs }} can be either 0 or 1. If {{ item.orgs }} equals 1, then I want the href attribute to be "#/parts/{{ item.idold }}", otherwise it should be "#/parts/detail/{{ item.id }}"