Skip to content

Instantly share code, notes, and snippets.

@javaeeeee
Created December 16, 2016 22:28
Show Gist options
  • Select an option

  • Save javaeeeee/8b718a986187f8a2ca9e2574d1dff152 to your computer and use it in GitHub Desktop.

Select an option

Save javaeeeee/8b718a986187f8a2ca9e2574d1dff152 to your computer and use it in GitHub Desktop.
A code to create an AngularJS module and add a controller
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