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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -