docs(ngdoc.js): fix usage to display attributes as dash-case

Closes 4611
This commit is contained in:
David Bennett 2013-10-23 14:11:04 -05:00 committed by Pete Bacon Darwin
parent ab3a3bf07a
commit e73bd40e85

View file

@ -813,7 +813,7 @@ Doc.prototype = {
dom.text(prefix);
dom.text(param.optional ? '[' : '');
var parts = param.name.split('|');
dom.text(parts[skipSelf ? 0 : 1] || parts[0]);
dom.text(dashCase(parts[skipSelf ? 0 : 1] || parts[0]));
}
if (BOOLEAN_ATTR[param.name]) {
dom.text(param.optional ? ']' : '');