Question · Vue.js course · Module 14: Directives & Plugins
readonly() in plugins
Why use readonly() when exposing data from a plugin?
Answer options
- To speed up reactivity
- To prevent accidental modification of data from outside the plugin
- To reduce memory usage
- To make data available in the template
You can check the correct answer by solving this task in the CodeWorlds game.