Created
February 5, 2017 19:17
-
-
Save javaeeeee/03f35bfa9c6ecbf1148596c03915a07e to your computer and use it in GitHub Desktop.
AngularJS nested scopes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section ng-controller="ParentController"> | |
<h4>Parent Scope</h4> | |
<p>{{onlyParent}}</p> | |
<p>{{myModel}}</p> | |
<article ng-controller="ChildController"> | |
<h5>Child Scope</h5> | |
<p>{{onlyChild}}</p> | |
<p>{{myModel}}</p> | |
<p>{{onlyParent}}</p> | |
</article> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment