glad it helped.
On Friday, August 19, 2016 at 10:44:02 AM UTC-7, Tito wrote:
>
> Aha wonderful!! something like this
>
> <div ng-if="video == video.large">
> <!-- code to render a large video block--></div><div ng-if="video !=
> video.large">
> <!-- code to render the regular video block --></div>
>
> 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.
>>> <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].
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.