petebacondarwin / dgeni-angular

Apache License 2.0
55 stars 25 forks source link

Add ngdoc annotations to mod2.js #1

Open btesser opened 10 years ago

btesser commented 10 years ago

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

petebacondarwin commented 10 years ago

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

btesser commented 10 years ago

Awesome.... I like that!

btesser commented 10 years ago

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

petebacondarwin commented 10 years ago

Not yet. Je pense. But I will work on it On 21 Oct 2014 13:09, "Ben Tesser" notifications@github.com wrote:

Does it work when this syntax is followed:

/* * Controller which does something with scope /function MyController($scope) { $scope.peanuts = 'food';} /* * @param {Array.} 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 .