Angularjs Tutorials for Beginners|Learn Basics.Video 18.ng-switch Directive

preview_player
Показать описание
AngularJS tutorial for beginners
Learn Angularjs Online Most simple way.

Angularjs Tutorial for Beginners
In this video we will show the use of ng-switch.

The ng-switch directive hide/show HTML elements depending on an expression.

There are 3 directives involved in the use of ng-switch:
ng-switch
ng-switch-when
ng-switch-default

The ngSwitchCase directive informs the parent NgSwitch of which view to display
when the expression is evaluated. When no matching expression is found on a
Рекомендации по теме