javascript - Conditional showing in Angular + ionic: Show if Id has specific value -
i trying show block in angular if id of specific value.
i tried in following code ng-if="{{what.nid}} === 12", didn't work.
this tried:-
<ng-map zoom="11" center="[40.74, -74.18]" ng-if="{{what.nid}} === 12"> <marker position="[40.74, -74.18]" /> <shape name="circle" radius="400" center="[40.74,-74.18]" radius="4000" /> <control name="overviewmap" opened="true" /> </ng-map>
ng-if accepts expression, using {{}} inside of not necessary, use ng-if="what.nid === 12"
Comments
Post a Comment