angularjs - Angular - Direction attribute usable in view -


my view looks this:

<li game="12.99">game2 <span ng-show="(price > 12.99)">test</span></li> 

is there way access price (12.99) in view, code like:

<li game="12.99">game2 <span ng-show="(price > self.price)">test</span></li> 

?

use ng-init create $scope property:

<li ng-init="price=12.99" game="{{price}}">game2 <span ng-show="price > 12.99">test</span></li> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -