angularjs - Set scope to child of current scope within template in Angular -
say i've got template this:
<div id="player" ng-show="player.is_visible"> <p ng-class="player.foo_class">...</p> <p ng-class="player.bar_class">...</p> <p ng-class="player.baz_class">...</p> <div>
how can narrow scope inside #player this?
<div id="player" ng-show="player.is_visible" ng-inner-scope="player"> <p ng-class="foo_class">...</p> <p ng-class="bar_class">...</p> <p ng-class="baz_class">...</p> <div>
Comments
Post a Comment