Skip to content

Instantly share code, notes, and snippets.

@DevEarley
Created June 18, 2017 02:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevEarley/19dcabccb7c24abaaf7b4c1fa3d2be1f to your computer and use it in GitHub Desktop.
Save DevEarley/19dcabccb7c24abaaf7b4c1fa3d2be1f to your computer and use it in GitHub Desktop.
Your everyday angular controller.
'use strict';
var myApp = angular.module('myApp');
myApp.controller('SomeController', ['$scope', '$rootScope', '$location',
function ($scope, $rootScope, $location) {
}]);
//OR
//'use strict';
angular.module('myApp').controller('SomeController',
function ($scope, $rootScope, $location) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment