Skip to content

Instantly share code, notes, and snippets.

@tkh44
Created April 8, 2014 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkh44/10156550 to your computer and use it in GitHub Desktop.
Save tkh44/10156550 to your computer and use it in GitHub Desktop.
(function(angular, $appName$) {
class $controllerName${
constructor($module1$, $module2$, $module3$) {
angular.extend(this, {
$module1$: $module1$,
$module2$: $module2$,
$module3$: $module3$
});
$END$
}
}
$controllerName$.$inject = ['$module1$', '$module2$', '$module3$'];
$appName$.controller('$controllerName$', $controllerName$);
})(angular, $appName$);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment