angular/dgeni-packages

Directive usage section missing types

ethanhann opened this issue · 1 comments

Should this line in the directiveParam macro use type.name instead of type.description? type.description never appears to be populated. For example, this doc:

/**
 * @ngdoc directive
 * @name eeh-navigation-sidebar
 * @restrict E
 *
 * @param {string} menuName Sets the name of the menu that the directive will render.
 */

...generates a doc with this in its usage section:

<eeh-navigation-sidebar
  menu-name="">
...
</eeh-navigation-sidebar>

Notice that the menu-name attribute doesn't have a type.

You are correct. We did in fact fix it here: https://github.com/angular/angular.js/blob/master/docs/config/templates/lib/macros.html

But it should be fixed here too