Skip to content

Instantly share code, notes, and snippets.

@rosterloh
Created August 21, 2014 10:13
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 rosterloh/e86a131e12c10a5deafe to your computer and use it in GitHub Desktop.
Save rosterloh/e86a131e12c10a5deafe to your computer and use it in GitHub Desktop.
(function () {
'use strict';
/**
* @class MainCtrl
* @classdesc Main Controller for doing awesome things
* @ngInject
*/
function MainCtrl ($scope, SomeFactory) {
this.doSometing = function () {
SomeFactory.doSomething();
};
}
MainCtrl.$inject = ['$scope', 'SomeFactory'];
angular
.module('app')
.controller('MainCtrl', MainCtrl);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment