Created
December 16, 2016 22:28
-
-
Save javaeeeee/8b718a986187f8a2ca9e2574d1dff152 to your computer and use it in GitHub Desktop.
A code to create an AngularJS module and add a controller
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
| angular.module('app', []) | |
| .controller('HelloController', HelloController); | |
| function HelloController($scope) { | |
| $scope.myModel = 'World'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment