CDN SideNav2 Error


Topic: CDN SideNav2 Error

triumphtang asked 4 years ago

var app = new Vue({ el: "#app", components: { mdbSideNav2: mdbvue.mdbSideNav2, }, data: { dataarray: [ { name: "group name", data: [ { name: "list1", href: "/", children: [ { name: "Name1", href: "/" }, { name: "Name2", href: "/" } ] }, { name: "list2", href: "/", children: [ { name: "Name21", href: "/" }, { name: "Name22", href: "/" } ] } ] } ], }, });

Magdalena Dembna staff premium commented 4 years ago

Hi, please use our code formatting tools to make your code readable and describe exactly what is the problem. A screenshot of the console with error would help a lot with troubleshooting. Best regards, Magdalena


triumphtang answered 4 years ago

enter link description here

enter image description here


Magdalena Dembna staff premium commented 4 years ago

The problem is that for mdbSidenav2 to work properly you need to use router (https://router.vuejs.org/), as it spies on active links - that's why CDN causes the problem. I've created a task to take a look at this issue in the future. Best 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

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: laptop
  • Browser: chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No