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:
> /search/?by=serialnumber=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  > 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.
>>> 
>>> 
>>> 
>>> Serial Number
>>> 
>>> 
>>> 
>>> 
>>> {{h.serialnumber }}
>>>
>>> 
>>> 
>>> 
>>>
>>> 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 angular+u...@googlegroups.com .
>> To post to this group, send email to ang...@googlegroups.com 
>> .
>> 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 
> 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[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 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.
>>> 
>>> 
>>> 
>>> Serial Number
>>> 
>>> 
>>> 
>>> 
>>> {{h.serialnumber }}
>>>
>>> 
>>> 
>>> 
>>>
>>> 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[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:
>>
>> 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.
>> 
>> 
>> 
>> Serial Number
>> 
>> 
>> 
>> 
>> {{h.serialnumber }}
>>
>> 
>> 
>> 
>>
>> 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


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 determine which view to display.

On Fri, Aug 19, 2016 at 1:30 PM 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:
>>
>> 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.
>> 
>> 
>> 
>> Serial Number
>> 
>> 
>> 
>> 
>> {{h.serialnumber }}
>>
>> 
>> 
>> 
>>
>> 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 angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> 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 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[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 display when they search by serial 
> number.
> 
> 
> 
> Serial Number
> 
> 
> 
> 
> {{h.serialnumber }}
>
> 
> 
> 
>
> 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.