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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -