build(aio): render whether parameters are optional (#22435)

Closes #22134

PR Close #22435
This commit is contained in:
Pete Bacon Darwin 2018-02-24 21:45:47 +00:00 committed by Alex Eagle
parent 25a43041d2
commit 1ea41d48d3
3 changed files with 9 additions and 5 deletions

View File

@ -107,7 +107,7 @@
"cross-spawn": "^5.1.0",
"css-selector-parser": "^1.3.0",
"dgeni": "^0.4.7",
"dgeni-packages": "0.24.1",
"dgeni-packages": "^0.24.2",
"entities": "^1.1.1",
"eslint": "^3.19.0",
"eslint-plugin-jasmine": "^2.2.0",

View File

@ -19,9 +19,13 @@
<tr class="{$ parameterClass $}">
<td class="param-name"><a id="{$ parameter.anchor $}"></a>{$ parameter.name $}</td>
<td class="param-description">
{% if parameter.description | trim %}{$ parameter.description | marked $}
{% marked %}
{% if parameter.isOptional %}Optional.{% endif %}
{% if parameter.description | trim %}{$ parameter.description $}
{% elseif parameter.type %}<code>{$ parameter.type $}</code>
{% endif %}
{% endmarked %}
</td>
</tr>{% endfor %}
</tbody>

View File

@ -2312,9 +2312,9 @@ devtools-timeline-model@1.1.6:
chrome-devtools-frontend "1.0.401423"
resolve "1.1.7"
dgeni-packages@0.24.1:
version "0.24.1"
resolved "https://registry.yarnpkg.com/dgeni-packages/-/dgeni-packages-0.24.1.tgz#e3e99eb82615b30a9e43fe1a9bb9911ff6bbf913"
dgeni-packages@^0.24.2:
version "0.24.2"
resolved "https://registry.yarnpkg.com/dgeni-packages/-/dgeni-packages-0.24.2.tgz#88e75f0f4cfd135a2c6c8ec431b66f32d63760d2"
dependencies:
canonical-path "0.0.2"
catharsis "^0.8.1"