Skip to content

Commit 10ae766

Browse files
committed
docs(ngSwitch): improve the @Usage example
1 parent 9497757 commit 10ae766

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ng/directive/ngSwitch.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
* @description
99
* Conditionally change the DOM structure.
1010
*
11-
* @usageContent
12-
* <ANY ng-switch-when="matchValue1">...</ANY>
11+
* @usage
12+
* <ANY ng-switch="expression">
13+
* <ANY ng-switch-when="matchValue1">...</ANY>
1314
* <ANY ng-switch-when="matchValue2">...</ANY>
1415
* ...
1516
* <ANY ng-switch-default>...</ANY>
17+
* </ANY>
1618
*
1719
* @scope
1820
* @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.

0 commit comments

Comments
 (0)