FrontendDeveloper.in

Vue.js question detail

What are the drawbacks of dynamic directive arguments?

Apart from the benefits of dynamic directives arguments, it brings two drawbacks or considerations on the usage

  1. Constraints on expressions: When you perform complex JavaScript expressions, make sure that html attribute names cannot contain spaces and quotes. The below expression doesn't work as expected

Instead you may need to use string template syntax

  1. Custom Directives: The custom directive implementations need to have potential argument changes in addition to value changes.
Back to all Vue.js questions
Get LinkedIn Premium at Rs 399