mdbootstrap / mdb-angular-ui-kit

Angular 18 & Bootstrap 5 & Material Design UI KIT
https://mdbootstrap.com/docs/angular/
Other
1.12k stars 282 forks source link

Collapse error when building #90

Closed isamely closed 6 years ago

isamely commented 6 years ago

When I run ng build --prod --verbose the terminal gives me this error: ERROR in src\app\arma-presupuesto\seleccion-producto\seleccion-producto.component.html(58,31): : Property 'isCollapsed' does not exist on type 'SeleccionProductoComponent'.

In seleccion-producto.component.ts there are these lines:

`import { Component, OnInit, ViewChild, Input, Output, EventEmitter } from '@angular/core'; import { CollapseDirective } from 'angular-bootstrap-md';

export class SeleccionProductoComponent implements OnInit {

@ViewChild('test') public test: CollapseDirective;

}`

what is wrong with the code?

Bloodcast69 commented 6 years ago

Dear isamely, In 6.2.3 release the CollapseDirective was changed to CollapseComponent. So change it in your code, and everything will be working fine. Best Regards, Damian