Created
February 6, 2017 16:57
-
-
Save javaeeeee/493cfcfeda3ee350421187c0ba3d8ebb to your computer and use it in GitHub Desktop.
An AngularJS controller using Controller As syntax
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('HelloController', HelloController); | |
function HelloController() { | |
var vm = this; | |
vm.myModel = 'World'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment