Skip to content

Instantly share code, notes, and snippets.

@mg
Created September 2, 2014 13:09
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 mg/d77de48cbca4b43e16e9 to your computer and use it in GitHub Desktop.
Save mg/d77de48cbca4b43e16e9 to your computer and use it in GitHub Desktop.
AngularJS/ToddMotto
// http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/
(function() {
/**
* Describe controller
*
* @param $scope
* @param p1
* @constructor
*/
@Inject
function Ctrl($scope, p1) {
/**
* Descripe $scope function
*
* @param p2
*/
$scope.nameOfFunction= function(p1) {
};
};
// Export
angular
.module('modulename')
.controller('Ctrl', Ctrl):
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment