Created
February 5, 2017 19:28
-
-
Save javaeeeee/1062ee3823c3aa191e72e0b3abeae7a1 to your computer and use it in GitHub Desktop.
An AngularJS controller used to explain nested scopes.
This file contains 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
(function () { | |
angular.module('app') | |
.controller('ParentController', ParentController); | |
ParentController.$inject = ['$scope']; | |
function ParentController($scope) { | |
$scope.myModel = 'Parent controller\'s myModel'; | |
$scope.onlyParent = 'Parent\'s variable'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment