difficulty | training | chapter | tags |
---|---|---|---|
1 |
true |
Chapter 1: Advanced Component Techniques |
vue |
Your task is to create a custom toggle input component that works with v-model.
- The component should take a boolean v-model that updates as expected when the toggle is clicked
- The v-model should support a custom modifier (
binary
) that uses converts values to1
or0
instead oftrue
/false
💡 HINT: Feel free to use TypeScript to make your component type safe if you'd like. This is NOT required however.