Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a simple angular controller and include it as a requirement in th…
…e main module.
- Loading branch information
Josh Graber
committed
Oct 16, 2015
1 parent
a790d0d
commit 8b7e3c1
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
var angular = require('angular'); | ||
|
||
exports.moduleName = 'exp-ang.helloWorld'; | ||
exports.controllerName = 'HelloWorldController'; | ||
|
||
function HelloWorldController() { | ||
var self = this; | ||
self.message = 'Hello Angular explorers!'; | ||
} | ||
|
||
angular.module(exports.moduleName, []) | ||
.controller(exports.controllerName, HelloWorldController); |