Why you use class lists in Vue? Question for MDBVue develope


Topic: Why you use class lists in Vue? Question for MDBVue developers / owners

xdon82 asked 5 years ago

Isn't a bad approach?

For example Navbar.vue

this.collapse.classList.toggle('show-navbar');
this.collapse.classList.remove('hide-navbar');

https://vuejs.org/v2/guide/class-and-style.html


Magdalena Dembna staff premium commented 5 years ago

Some of our components have been written some time ago and might need refactoring. Thank you for this remark. Kind regards, Magdalena


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 5.8.3
  • Device: pc
  • Browser: Edge Chromium
  • OS: win10
  • Provided sample code: No
  • Provided link: Yes
Tags