Last active
December 31, 2015 00:09
-
-
Save limitingfactor/7905312 to your computer and use it in GitHub Desktop.
Release[Board] Angular JS Gotchas #1: The Gotcha occurs when you attempt to modify the parent scope from the child scope. In this situation, the child scope will create a duplicate scope variable and not update the parent scope variable. This can lead to data-binding breaking in your Angular App. To remedy this issue, add a setter method in the …
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
<!-- Angular JS Gotchas http://releaseboard.com --> | |
<div ng-controller="ParentCtrl"> | |
<!-- Lots of HTML --> | |
{{ release.name }} <!-- This won't update if you update the release name from the child --> | |
<div ng-controller="ChildCtrl"> | |
<!-- Lots of HTML --> | |
{{ release.name }} | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment