mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-17 12:15:56 +08:00
fix(docs): properly close the optional ] in directive signatures
This commit is contained in:
@@ -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 ? ']' : '');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user