Topic: Angular Bootstrap collapse

junior5417 pro asked 6 years ago


Hi,

I'm trying to use accordion for my web application following the guide on this website https://mdbootstrap.com/angular/advanced/collapse/ but unfortunately i'm getting

"There is no directive with "exportAs" set to "bs-collapse" ("est.toggle()">View</button>" error

Start your code here

<button type="button" class="btn btn-outline-primary btn-rounded btn-sm my-0" (click)="test.toggle()">View</button>

<div [collapse]="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>


Damian Gemza staff commented 6 years ago

Dear junior5417, Please add schemas: [NO_ERRORS_SCHEMA] to your app.module.ts file, and the problem should be gone. If not, please let me know. Best Regards, Damian

junior5417 pro commented 6 years ago

Hi Damian, Already included schemas: [NO_ERRORS_SCHEMA] in my app.module.ts file but i'm still getting errors. Do I need to include it in my sub module.ts as well? Regards, Nic

Damian Gemza staff commented 6 years ago

You have to include schemas: [NO_ERRORS_SCHEMA] in every module which uses MDB Angular modules. Best Regards, Damian

junior5417 pro commented 6 years ago

Thanks! It works now. Does Angular mdbootsrap support table collapsable?

Damian Gemza staff commented 6 years ago

Dear junior5417, We haven't got such a functionality in our library. You could try to use collapse directive to collapse your table, but I can't guarantee you a success in it. Best Regards, Damian


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