try taking a look at AngularJS filters, it's possible to do this on the html end!
http://docs.angularjs.org/api/ng.filter:filter
http://docs.angularjs.org/tutorial/step_09