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:

The 6 New Rules of Communicating

The era of teleprompters and talking points has come to an end ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *