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 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.

Reply via email to