Pass object data to styles in Vue.js

后端 未结 1 953
醉话见心
醉话见心 2021-01-14 08:24

I want to be able to pass data from a object to the in a single file component. However, it doesn\'t seem like this is possible.

What I\'

1条回答
  •  自闭症患者
    2021-01-14 08:50

    As far as I'm aware, you are not able to pass data from the component to its stylesheets.

    The best practice as far as dynamic styling is to use v-bind:class or v-bind:style if needed. The