How to use the ng-devui/devui.module.DevUIModule.forRoot function in ng-devui

To help you get started, we’ve selected a few ng-devui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DevCloudFE / ng-devui / src / app / app.module.ts View on Github external
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

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

import { DevUIModule } from 'ng-devui/devui.module';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    DevUIModule.forRoot(),
    RouterModule.forRoot(
      [
        {
          path: '',
          redirectTo: 'components',
          pathMatch: 'full'
        },
        {
          path: 'components',
          loadChildren: './component/app-content.module#AppContentModule'
        },
        {
          path: '**',
          redirectTo: 'components'
        }
      ]