Question · Vue.js course · Module 7: Props & Events
Accessing attrs in script setup
How do you access attrs in <script setup>?
Answer options
- const attrs = useAttrs()
- this.$attrs
- props.$attrs
- import attrs from 'vue'
You can check the correct answer by solving this task in the CodeWorlds game.