Topic: There is no directive with "exportAs" set to "bs-collapse" ("

Mohammad Shadmehr free asked 7 years ago


Hi,I have just downloaded the free version and experiencing some issues around the Collapse and Modal components. I have just simply copy the sample code from your website for collapse as:

<button class=\"btn btn-primary waves-light\" type=\"button\" (click)=\"test.toggle()\" mdbRippleRadius>Toggle collapse</button>
<div class=\"\" [mdbCollapse]=\"isCollapsed\" #test=\"bs-collapse\">
<p>Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.</p>
</div>

And I am getting the following error:

There is no directive with \"exportAs\" set to \"bs-collapse\" (\"</button><div class=\"\" [mdbCollapse]=\"isCollapsed\" [ERROR ->]#test=\"bs-collapse\">

Am I missing something?


Dawid Adach pro answered 7 years ago


Hi Mohammad. You probably missing some imports of our modules in your module. Best Regards, Alan Mroczek.

Mohammad Shadmehr free commented 7 years ago

Hey Alan, Well actually I have figured it out myself by changing this: <pre><div class=\"\" [mdbCollapse]=\"isCollapsed\" #test=\"bs-collapse\"></pre> to <pre><div class=\"\" [collapse]=\"isCollapsed\" #test=\"bs-collapse\"></pre> Seems the the sample snippets are kind of out of date and reliable!


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: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No
Tags