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> |
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 | |
app.controller('ParentCtrl', function ($scope, Release) { | |
$scope.release_data = Release.get({}, function() { | |
$scope.release = $scope.release_data.release; | |
}); | |
$scope.setRelease = function(release) { | |
$scope.release = release; | |
} |