mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-27 10:33:12 +00:00
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { SharedModule } from '../../../../core/modules/shared.module';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { FuseContactsMainSidenavComponent } from './sidenavs/main/main.component';
|
|
import { FuseContactsComponent } from './contacts.component';
|
|
import { ContactsService } from './contacts.service';
|
|
import { FuseContactsContactListComponent } from './contact-list/contact-list.component';
|
|
import { FuseContactsSelectedBarComponent } from './selected-bar/selected-bar.component';
|
|
import { FuseContactsContactFormDialogComponent } from './contact-form/contact-form.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path : '**',
|
|
component: FuseContactsComponent,
|
|
children : [],
|
|
resolve : {
|
|
contacts: ContactsService
|
|
}
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports : [
|
|
SharedModule,
|
|
RouterModule.forChild(routes)
|
|
],
|
|
declarations : [
|
|
FuseContactsComponent,
|
|
FuseContactsContactListComponent,
|
|
FuseContactsSelectedBarComponent,
|
|
FuseContactsMainSidenavComponent,
|
|
FuseContactsContactFormDialogComponent
|
|
],
|
|
providers : [
|
|
ContactsService
|
|
],
|
|
entryComponents: [FuseContactsContactFormDialogComponent]
|
|
})
|
|
export class FuseContactsModule
|
|
{
|
|
}
|