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