Put in order · Vue.js course · Module 14: Directives & Plugins
Plugin Options Pattern
Arrange the steps for implementing the Plugin Options Pattern:
Items to put in order
- Define a defaults object with default values
- Expose the configuration through app.provide()
- Merge defaults with options: { ...defaults, ...options }
You can check the correct answer by solving this task in the CodeWorlds game.