build(aio): render default value for optional parameters (#22435)

Closes #22134

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

View File

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

View File

@ -20,7 +20,7 @@
<td class="param-name"><a id="{$ parameter.anchor $}"></a>{$ parameter.name $}</td> <td class="param-name"><a id="{$ parameter.anchor $}"></a>{$ parameter.name $}</td>
<td class="param-description"> <td class="param-description">
{% marked %} {% marked %}
{% if parameter.isOptional %}Optional.{% endif %} {% if parameter.isOptional or parameter.defaultValue !== undefined %}Optional. Default is `{$ parameter.defaultValue === undefined and 'undefined' or parameter.defaultValue $}`.{% endif %}
{% if parameter.description | trim %}{$ parameter.description $} {% if parameter.description | trim %}{$ parameter.description $}
{% elseif parameter.type %}<code>{$ parameter.type $}</code> {% elseif parameter.type %}<code>{$ parameter.type $}</code>

View File

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