Skip to content

Instantly share code, notes, and snippets.

@craigshoemaker
Created July 2, 2014 20:45
Show Gist options
  • Save craigshoemaker/eb051978117ebf345f17 to your computer and use it in GitHub Desktop.
Save craigshoemaker/eb051978117ebf345f17 to your computer and use it in GitHub Desktop.
Controller Definition from Official AngularJS Help Documentation
// from: https://docs.angularjs.org/guide/controller
myApp.controller('GreetingController', ['$scope', function($scope) {
$scope.greeting = 'Hola!';
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment