Re: [AngularJS] Re: conditional view

2016-08-19 Thread Tito
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: >

[AngularJS] Re: conditional view

2016-08-19 Thread Mayur Dudhani
glad it helped. On Friday, August 19, 2016 at 10:44:02 AM UTC-7, Tito wrote: > > Aha wonderful!! something like this > > > > > > Thanks Mayur! > > > On Friday, August 19, 2016 at 10:30:10 AM UTC-7, Mayur Dudhani wrote: >> >> How about using ng-switch or if you have two conditions you

[AngularJS] Re: conditional view

2016-08-19 Thread Tito
Aha wonderful!! something like this Thanks Mayur! On Friday, August 19, 2016 at 10:30:10 AM UTC-7, Mayur Dudhani 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: >> >>

Re: [AngularJS] Re: conditional view

2016-08-19 Thread 'Lucas Lacroix' via AngularJS
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=XYZ That would route to your search component which would execute the search and use ngSwitch on the "by" parameter to

[AngularJS] Re: conditional view

2016-08-19 Thread Mayur Dudhani
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