Re-added the accidentally deleted Angular Material Examples module

This commit is contained in:
Sercan Yemen 2018-06-07 19:10:44 +03:00
parent 5c1f2ad1e3
commit ea15a8b832
6 changed files with 13 additions and 9 deletions

View File

@ -7,10 +7,10 @@ import { COMPONENT_MAP } from 'app/main/components/angular-material/example-comp
@Component({
selector : 'angular-material',
templateUrl: './angular-material.component.html',
styleUrls : ['./angular-material.component.scss']
templateUrl: './angular-material-examples.component.html',
styleUrls : ['./angular-material-examples.component.scss']
})
export class AngularMaterialComponent implements OnInit, OnDestroy
export class AngularMaterialExamplesComponent implements OnInit, OnDestroy
{
id: string;
title: string;

View File

@ -7,7 +7,7 @@ import { FuseWidgetModule } from '@fuse/components/widget/widget.module';
import { MaterialModule } from 'app/main/components/angular-material/material.module';
import { EXAMPLE_LIST } from 'app/main/components/angular-material/example-components';
import { AngularMaterialComponent } from 'app/main/components/angular-material/angular-material.component';
import { AngularMaterialExamplesComponent } from 'app/main/components/angular-material/angular-material-examples.component';
import { ExampleViewerComponent } from 'app/main/components/angular-material/example-viewer/example-viewer';
const routes: Routes = [
@ -16,7 +16,7 @@ const routes: Routes = [
children: [
{
path : ':id',
component: AngularMaterialComponent
component: AngularMaterialExamplesComponent
}
]
}
@ -25,7 +25,7 @@ const routes: Routes = [
@NgModule({
declarations : [
[...EXAMPLE_LIST],
AngularMaterialComponent,
AngularMaterialExamplesComponent,
ExampleViewerComponent
],
imports : [
@ -39,7 +39,7 @@ const routes: Routes = [
],
entryComponents: EXAMPLE_LIST,
})
export class AngularMaterialModule
export class AngularMaterialExamplesModule
{
}

View File

@ -5,6 +5,8 @@ import { NgxChartsModule } from '@swimlane/ngx-charts';
import { FuseSharedModule } from '@fuse/shared.module';
import { AngularMaterialExamplesModule } from 'app/main/components/angular-material/angular-material-examples.module';
import { FuseCountdownModule, FuseHighlightModule, FuseMaterialColorPickerModule, FuseWidgetModule } from '@fuse/components';
import { CardsDocsComponent } from 'app/main/components/cards/cards.component';
import { CountdownDocsComponent } from 'app/main/components/countdown/countdown.component';
@ -93,7 +95,9 @@ const routes = [
FuseCountdownModule,
FuseHighlightModule,
FuseMaterialColorPickerModule,
FuseWidgetModule
FuseWidgetModule,
AngularMaterialExamplesModule
]
})
export class ComponentsModule

View File

@ -685,7 +685,7 @@ export const navigation: FuseNavigation[] = [
children: [
{
id : 'badge',
title: 'badge',
title: 'Badge',
type : 'item',
url : '/components/angular-material/badge'
},