Skip to content

Instantly share code, notes, and snippets.

@dddent
Created December 16, 2015 10:48
Show Gist options
  • Save dddent/e208829c255877bf271c to your computer and use it in GitHub Desktop.
Save dddent/e208829c255877bf271c to your computer and use it in GitHub Desktop.
(function () {
var appName = 'MedCloudApp';
var controllerName = '[ControllerName]';
var requirements = ['[requirement1], [requirement2], [...]'];
var controller = function ([dependencies]) {
// controller code
};
requirements.push(controller);
var app = angular.module(appName);
app.controller(controllerName, requirements);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment