Created
September 2, 2014 13:09
-
-
Save mg/d77de48cbca4b43e16e9 to your computer and use it in GitHub Desktop.
AngularJS/ToddMotto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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