dgeni-angular icon indicating copy to clipboard operation
dgeni-angular copied to clipboard

Add ngdoc annotations to mod2.js

Open btesser opened this issue 10 years ago • 4 comments

Using new alias syntax... maybe I should hold off and use name though

btesser avatar Oct 21 '14 10:10 btesser

The aim os to minimise the number of tags we need to write

petebacondarwin avatar Oct 21 '14 10:10 petebacondarwin

Awesome.... I like that!

btesser avatar Oct 21 '14 11:10 btesser

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...

btesser avatar Oct 21 '14 11:10 btesser

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 .

petebacondarwin avatar Oct 21 '14 14:10 petebacondarwin