[Vue warn]: Property or method showModal5 is not defined


Topic: [Vue warn]: Property or method "showModal5" is not defined

jay2jam pro asked 6 years ago

Hello,

i copied the basic modal into my component and i get this message: vue.esm.js?a026:628 [Vue warn]: Property or method "showModal5" is not defined

Code 1:1 from your site.

Rgds


Mikołaj Smoleński staff answered 6 years ago

Hello,

You just need to add the data object in Your .vue file:

  data() {
    return {
      showModal5: false
    }
  }

Best regards


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: Pro
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 4.8.2
  • Device: MAC
  • Browser: CHROME
  • OS: Moave
  • Provided sample code: No
  • Provided link: No