1<template>
2 <span
3 class="description"
4 :class="darkMode ? 'dark-theme' : 'light-theme'"
5 >
6 This is how you add dynamic classes in Vue.
7 </span>
8</template>
1<figure :style="[item.main_featured ? {'background': 'url(' + item.main_featured + ') center no-repeat'} : {'background': '#FFF'}]">