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
- 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
- Custom Directives: The custom directive implementations need to have potential argument changes in addition to value changes.