Topic: There is no directive with "exportAs" set to "mdbCollapse"
                  
                  moulot
                  priority
                  asked 4 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
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
Arkadiusz Idzikowski staff commented 4 years ago
@moulot Collapsible navbar use
mdbCollapsedirective. Did you importMdbCollapseModule?SthEEbzz TV free commented 3 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 ]