How can we use filter in typescript?


Hello all,

I am working on small application using typescript and angularjs. I am trying to inject filter in typescript but i am not able to filter items. I want to search items on enter click. Writing filter in html is not a good idea as a i think. Can anyone please provide sample example or please do the needful.