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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -