unidades:04_masdirectivas:07_ngswitch
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previa | |||
| unidades:04_masdirectivas:07_ngswitch [2014/07/31 20:46] – admin | unidades:04_masdirectivas:07_ngswitch [2014/08/29 23:02] (actual) – admin | ||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| ====== 4.7 ng-switch ====== | ====== 4.7 ng-switch ====== | ||
| - | La directiva ng-switch es similar a '' | + | La directiva |
| Esta directiva realmente está compuesta por 4 distintas: | Esta directiva realmente está compuesta por 4 distintas: | ||
| Línea 7: | Línea 7: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | Vemos un ejemplo: | + | Veamos |
| <sxh html; | <sxh html; | ||
| <div ng-switch | <div ng-switch | ||
| - | <div ng-switch-when=" | + | <div ng-switch-when=" |
| <div ng-switch-when=" | <div ng-switch-when=" | ||
| <div ng-switch-default> | <div ng-switch-default> | ||
| </ | </ | ||
| </ | </ | ||
| - | * Línea 1: Indicamos que es un switch con la directiva '' | + | * Línea 1: Indicamos que es un switch con la directiva '' |
| * Línea 2: Una posible opción cuando '' | * Línea 2: Una posible opción cuando '' | ||
| - | * Línea 3: Si '' | + | * Línea 3: Si '' |
| <note important> | <note important> | ||
unidades/04_masdirectivas/07_ngswitch.1406832395.txt.gz · Última modificación: por admin
