Question · Vue.js course · Module 6: Components

Reactive styles with v-bind

How do you use reactive variables in the <style scoped> section?

Answer options

  • Through interpolation {{ variable }}
  • Through the v-bind(variable) directive in CSS
  • You cannot use variables in style
  • Through $refs.style.variable

You can check the correct answer by solving this task in the CodeWorlds game.