Put in order · Vue.js course · Module 4: Computed & Watch
Watch configuration step by step
Arrange the watch configuration steps in the correct order:
Items to put in order
- import { watch } from 'vue'
- Add options (deep, immediate, flush)
- Write the callback function
- Define the source (ref/reactive/getter)
You can check the correct answer by solving this task in the CodeWorlds game.