aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2013-04-01 21:33:18 -0700
committerIgor Minar2013-04-01 21:35:02 -0700
commit10ae76673c200511f5da5aa1d5bea200b7be0fda (patch)
tree110d17c08855350d4e09cda7e129c58487ad3264
parent949775784237e8354baf1aeb417ce47d2a797b9c (diff)
downloadangular.js-10ae76673c200511f5da5aa1d5bea200b7be0fda.tar.bz2
docs(ngSwitch): improve the @usage example
-rw-r--r--src/ng/directive/ngSwitch.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js
index 7b698107..9817a9b7 100644
--- a/src/ng/directive/ngSwitch.js
+++ b/src/ng/directive/ngSwitch.js
@@ -8,11 +8,13 @@
* @description
* Conditionally change the DOM structure.
*
- * @usageContent
- * <ANY ng-switch-when="matchValue1">...</ANY>
+ * @usage
+ * <ANY ng-switch="expression">
+ * <ANY ng-switch-when="matchValue1">...</ANY>
* <ANY ng-switch-when="matchValue2">...</ANY>
* ...
* <ANY ng-switch-default>...</ANY>
+ * </ANY>
*
* @scope
* @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.