Lucas, I will also look into ngSwitch also Thanks!
On Friday, August 19, 2016 at 10:43:06 AM UTC-7, Lucas Lacroix wrote: > > I, personally, like to use the route for the search itself. That way, a > user can save a search and/or share it with others. > So, maybe something like: > /search/?by=serialnumber&value=XYZ > > That would route to your search component which would execute the search > and use ngSwitch on the "by" parameter to determine which view to display. > > On Fri, Aug 19, 2016 at 1:30 PM Mayur Dudhani <[email protected] > <javascript:>> wrote: > >> How about using ng-switch or if you have two conditions you can even use >> ng-if/ng-show >> >> >> On Friday, August 19, 2016 at 9:49:36 AM UTC-7, Tito wrote: >>> >>> Hello, >>> >>> I would like to change my UI dynamically based on some filters user uses >>> on a search screen. >>> >>> So for example the following might display when they search by serial >>> number. >>> <table class="table table-hover table-striped"> >>> <thead> >>> <tr> >>> <th>Serial Number</th> >>> </tr> >>> </thead> >>> <tbody> >>> <tr ng-repeat="h in vm.hardwares "> >>> <td>{{h.serialnumber }}</td> >>> >>> </tr> >>> </tbody> >>> </table> >>> >>> but then if they check a checkbox the result set coming back will be >>> different so I would like to change the UI accordingly. >>> I was thinking of either of doing this in my routes by calling a >>> different html? or change UI dynamically. >>> >>> Not sure of the best approach or any leads you can point me to please? >>> >>> Thanks! >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. >> > -- > Lucas Lacroix > Computer Scientist > Advanced Technology Division, MEDITECH <http://ehr.meditech.com/> > 781-774-2293 > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
