Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: troubles with dropdown and progressbar

Diego001 pro asked 6 years ago


Hi, can someone give me a example of use the dropdown and progressbar? I have troubles importing the modules in ts. Im tried
import { ProgressbarModule,  DropdownModule } from 'ng-uikit-pro-standard';
and then
imports: [

ProgressbarModule,


DropdownModule

],
but doesnt work, i tried to put they in providers without succes. So can give me a explicit example please


Damian Gemza staff answered 6 years ago


Dear Diego, For using Dropdowns, you have to import WavesModule, DropdownModule and ButtonsModule. For using Progressbars, Preloaders and Spinning Preloaders (like circles) you have to import PreloadersModule. Below is the correct app.module.ts file:
import { BrowserModule } from '@angular/platform-browser';

import { NgModule } from '@angular/core';

import { WavesModule, PreloadersModule, ButtonsModule, DropdownModule, MDBSpinningPreloader } from 'ng-uikit-pro-standard';

import { AppComponent } from './app.component';

@NgModule({

declarations: [

AppComponent,

],

imports: [

BrowserModule,

PreloadersModule,

DropdownModule.forRoot(),

WavesModule.forRoot(),

ButtonsModule.forRoot(),

],

providers: [MDBSpinningPreloader],

bootstrap: [AppComponent]

})

export class AppModule { }
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: 6.2.3
  • Device: desktop
  • Browser: chrome
  • OS: linux
  • Provided sample code: Yes
  • Provided link: No