mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-19 23:02:33 +00:00
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { FuseSharedModule } from '@fuse/shared.module';
|
|
import { FuseHighlightModule } from '@fuse/components/index';
|
|
import { FuseWidgetModule } from '@fuse/components/widget/widget.module';
|
|
|
|
import { MaterialModule } from 'app/main/angular-material-elements/material.module';
|
|
import { EXAMPLE_LIST } from 'app/main/angular-material-elements/example-components';
|
|
import { AngularMaterialElementsComponent } from 'app/main/angular-material-elements/angular-material-elements.component';
|
|
import { ExampleViewerComponent } from 'app/main/angular-material-elements/example-viewer/example-viewer';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path : '',
|
|
children: [
|
|
{
|
|
path : ':id',
|
|
component: AngularMaterialElementsComponent
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
declarations : [
|
|
[...EXAMPLE_LIST],
|
|
AngularMaterialElementsComponent,
|
|
ExampleViewerComponent
|
|
],
|
|
imports : [
|
|
RouterModule.forChild(routes),
|
|
|
|
MaterialModule,
|
|
|
|
FuseSharedModule,
|
|
FuseHighlightModule,
|
|
FuseWidgetModule
|
|
],
|
|
entryComponents: EXAMPLE_LIST,
|
|
})
|
|
export class AngularMaterialElementsModule
|
|
{
|
|
}
|
|
|