Created
November 13, 2015 16:12
-
-
Save tonyjoanes/5ab97df6f10e86300475 to your computer and use it in GitHub Desktop.
Extremely simple angular controller
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 () { | |
'use strict'; | |
angular | |
.module('SampleApp') | |
.controller('HomeController', HomeController); | |
function HomeController() { | |
var vm = this; | |
vm.sampleText = "Hey this is from the controller"; | |
vm.pageTitle = "Hello from AngularJS"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment