• +91 9723535972
  • info@interviewmaterial.com

Vue JS Interview Questions and Answers

Question - Is it possible to pass parameters for filters?

Answer -

Yes, you can pass arguments for a filter similar to a javascript function. The generic structure of filter parameters would be as follows,

{{ message | filterA('arg1', arg2) }}
In this case, filterA takes message expression as first argument and the explicit parameters mentioned in the filter as second and third arguments.

For example, you can find the exponential strength of a particular value

{{ 2 | exponentialStrength(10) }}

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners