Skip to content

Commit 84a58f4

Browse files
committed
Fixed optional spec in the docs.
1 parent 145660b commit 84a58f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/site/components/docs/docs.js

-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ angular
159159
formatHtml(detectLinks(detectModules(tag.description.replace(/^- /, '')))));
160160
tag.types = $sce.trustAsHtml(tag.types.reduceRight(
161161
reduceModules, []).join(', '));
162-
tag.optional = tag.types.toString().indexOf('=') > -1;
163162
tag.subparam = tag.name.indexOf('.') > -1;
164163
return tag;
165164
}),

docs/site/css/main.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,11 @@ ul {
747747
font-style: italic;
748748
}
749749

750-
.param-optional .param-description:before {
751-
content: "optional. ";
750+
.param-optional .param-types:after {
751+
content: " (optional)";
752752
color: #aaa;
753753
font-style: italic;
754+
font-size: 85%;
754755
}
755756

756757
.method-heading {

0 commit comments

Comments
 (0)