How do you use $filter?



How do you use $filter?..

Answer / Nitin Singh

In AngularJS, $filter is a service used to format and manipulate data. To use it, you can inject the $filter service into your controller and apply the desired filter function on an expression. For example, to uppercase all characters in a string, you might do: `var uppercaseString = $filter('uppercase')(yourString);`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain service? When we should use service?

1 Answers  


What are events binding in angular 4?

1 Answers  


What is the need of angular 2?

1 Answers  


Is no directive with exportas set to ngform?

1 Answers  


What is deep linking in angular js?

1 Answers  


Why we need angular services?

1 Answers  


Explain directive scopes in angularjs?

1 Answers  


what is directive and mention what are the different types of directive?

1 Answers  


What is primeng and how can it be used with angular2?

1 Answers  


Explain currency filter in angularjs. How can we use it?

1 Answers  


Angularjs dependency injection of value inside of the module.config?

0 Answers  


When first angularjs was released?

1 Answers  


Categories