aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/src/ngdoc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index 2a86dfbc..b5e20474 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -421,8 +421,8 @@ Doc.prototype = {
} else {
dom.text(BOOLEAN_ATTR[param.name] ? '' : infix );
dom.text(('{' + param.type + '}').replace(/^\{\'(.*)\'\}$/, '$1'));
- dom.text(param.optional ? ']' : '');
dom.text(suffix);
+ dom.text(param.optional && !skip ? ']' : '');
}
});
}