css binding vuejs essential

https://codepen.io/edward1995/pen/JrYMXj
  • {{item}}
body {
  background-color: linen;
}
.selected {
  background-color: lightblue;
}
.underlined{
  text-decoration: underline;
}
.overline{
  text-decoration: overline
}
.line-through{
  text-decoration: line-through
}

.line-through{
  text-decoration: line-through
}
new Vue({
  el: '#app',
  data:{
    selected: 'Home',
    menuItems: ['Home', 'About', 'Contact'],
    classArray: [
      'selected',
      'overline',
      'line-through',
      'underlined',
      'none'
      ],
    classselected: 'none',
  }
})

No comments:

This will make you a better decision maker | Annie Duke (author of “Thinking in Bets” and “Quit”, former pro poker…

Annie is a former professional poker player, decision-making expert, author, and special partner at First Round Capital.  ͏     ­͏     ­͏   ...

Contact Form

Name

Email *

Message *