dimanche 17 septembre 2017

orderBy : "......" with a button in angular

I everyone, i'm new to angular/jade and i want to order user by choosing with a button it could be alphabetic order (or the opposite) , departement.id, departement.label.

 .col-md-3(ng-repeat="user in refs.userList | orderBy : 'department.id'", ng-if="user.department.id")

I've tried by my side but it didn't worked. I'm keep trying but if you could help me, it'd be a pleasure!

Thank you, Nicolas

Aucun commentaire:

Enregistrer un commentaire