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
Post a Comment