Created
July 17, 2015 21:59
-
-
Save david-pm/94bd17edeeb256915690 to your computer and use it in GitHub Desktop.
ngSwitch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <body ng-controller="MainController"> | |
| <h4>Which Star Wars Episodes Were Good/Bad?</h4> | |
| <div ng-switch on="quality"> | |
| <div ng-switch-when="bad"> | |
| Episodes IV, V ,VI | |
| </div> | |
| <div ng-switch-when="good"> | |
| Episodes I, II, III | |
| </div> | |
| </div> | |
| <label> | |
| Good <input type="radio" name="quality" ng-model="quality" value="good" /> | |
| </label> | |
| <label> | |
| Bad <input type="radio" name="quality" ng-model="quality" value="bad" /> | |
| </label> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment