Filter in Controller


#1

Hi, how can i use filter in controller?

I can use in view like this, but i need in controller, $filter(‘currency’)(value) does not working

{{ item.valor | currency}}