angularjs - Angular Nested conditions using ng-switch -
is possible have root first condition been evaluated using ng-show, ng-if or ng-switch before series of second tier conditions evaluated using ng-switch
<div ng-if="firstcondition = 'true'" > <div ng-switch="secondcondition"> <div ng-switch-when="0"> <div ng-include="'firstview.html'"></div> </div> <div ng-switch-when="2"> <div ng-include="'secondview.html'"></div> </div> <div ng-switch-when="3"> <div ng-include="'thirdview.html'"></div> </div> </div> </div>
your error point here
<div ng-if="firstcondition = 'true'" > this should
<div ng-if="firstcondition == 'true'" > your using single = sign use assigning.
Comments
Post a Comment