Topic: There is no directive with "exportAs" set to "mdbCollapse"

moulot priority asked 3 years ago


Hello, i copied and paste the navbar on ngular page and i get this error : There is no directive with "exportAs" set to "mdbCollapse" at this line of code : #basicNavbar="mdbCollapse" am i missing imports or something else? thank you


Arkadiusz Idzikowski staff commented 3 years ago

@moulot Collapsible navbar use mdbCollapse directive. Did you import MdbCollapseModule?


SthEEbzz TV free commented 2 years ago

I've imported it to app.module.ts and then it works !!! Thanks

In app.module.ts:

import { MdbCollapseModule } from 'mdb-angular-ui-kit/collapse';

imports: [ / MdbCollapseModule ]



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0-beta5
  • Device: macbook pro
  • Browser: chrome
  • OS: mac OS
  • Provided sample code: No
  • Provided link: No