diff options
| author | Igor Minar | 2013-04-01 21:33:18 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-04-01 21:33:31 -0700 |
| commit | 85c31e068821f412128d98265ed439a725400528 (patch) | |
| tree | fa2ee7df01f5ed03df0e10825def4014ffef5cd6 /src/ng/directive/ngSwitch.js | |
| parent | c2e215fab6ba73e195f8c32701cfb6e88e8e1ebd (diff) | |
| download | angular.js-85c31e068821f412128d98265ed439a725400528.tar.bz2 | |
docs(ngSwitch): improve the @usage example
Diffstat (limited to 'src/ng/directive/ngSwitch.js')
| -rw-r--r-- | src/ng/directive/ngSwitch.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js index 44985737..f22e634d 100644 --- a/src/ng/directive/ngSwitch.js +++ b/src/ng/directive/ngSwitch.js @@ -10,12 +10,13 @@ * ngSwitchWhen or ngSwitchDefault directives will be preserved at the location * as specified in the template * - * @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>...</ANY> + * </ANY> * * @scope * @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>. |
