Topic: Problems to setup MDB with Angular

Kevin priority asked 11 hours ago


Hello guys,

I try to run Angular with MDB PRO Bundle as a single user but I've a problem. I setup my standard Angular project, add the resource files to the asset folder, add these paths to the angular.json file like this:

"styles": [
              "src/styles.css",
          "src/assets/mdb/css/mdb.min.css"
        ],
        "scripts": [
          "src/assets/mdb/js/mdb.es.min.js"
        ]

It works until I need for example the collapse module for the header. I tried to import it in the component but it won't be found.

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

@Component({
  selector: 'app-header',
  imports: [MdbCollapseModule],
  templateUrl: './header.component.html',
  styleUrl: './header.component.css',
})
export class HeaderComponent {

}

How can I fix it?



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 9.1.0
  • Device: Computer
  • Browser: Firefox
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No