Created
February 5, 2017 19:01
-
-
Save javaeeeee/51a66d05525700a83f9140ea9c1a27d9 to your computer and use it in GitHub Desktop.
An AngularJS controller to show that variables with the same name can exist in different 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('GoodbyeController', GoodbyeController); | |
GoodbyeController.$inject = ['$scope']; | |
function GoodbyeController($scope){ | |
$scope.myModel = 'Everyone'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment