dgeni-angular
dgeni-angular copied to clipboard
Add ngdoc annotations to mod2.js
Using new alias syntax... maybe I should hold off and use name though
The aim os to minimise the number of tags we need to write
Awesome.... I like that!
Does it work when this syntax is followed:
/**
* Controller which does something with scope
*/
function MyController($scope) {
$scope.peanuts = 'food';
}
/**
* @param {Array.<String>} toppings Pizza toppings
* @returns {Boolean}
*/
MyController.prototype.eatPizza = function (toppings) {
return toppings && toppings.length && toppings.indexOf('pepperoni') > -1;
};
angular.module('my.module').controller('MyController', MyController);
Most of my code follows a structure like that. PS After reading that code snippet it's probably clear I'm hungry...
Not yet. Je pense. But I will work on it On 21 Oct 2014 13:09, "Ben Tesser" [email protected] wrote:
Does it work when this syntax is followed:
/** * Controller which does something with scope /function MyController($scope) { $scope.peanuts = 'food';} /* * @param {Array.<String>} toppings Pizza toppings * @returns {Boolean} */MyController.prototype.eatPizza = function (toppings) { return toppings && toppings.length && toppings.indexOf('pepperoni') > -1;}; angular.module('my.module').controller('MyController', MyController);
Most of my code follows a structure like that. PS After reading that code snippet it's probably clear I'm hungry...
— Reply to this email directly or view it on GitHub https://github.com/petebacondarwin/dgeni-angular/pull/1#issuecomment-59911935 .