mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-18 14:22:35 +00:00
37 lines
925 B
TypeScript
37 lines
925 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { SharedModule } from '../../../core/modules/shared.module';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { MainSidenavComponent } from './sidenavs/main/main.component';
|
|
import { ContactsComponent } from './contacts.component';
|
|
import { ContactsService } from './contacts.service';
|
|
import { ContactListComponent } from './contact-list/contact-list.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path : '**',
|
|
component: ContactsComponent,
|
|
children : [],
|
|
resolve : {
|
|
contacts: ContactsService
|
|
}
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports : [
|
|
SharedModule,
|
|
RouterModule.forChild(routes)
|
|
],
|
|
declarations: [
|
|
ContactsComponent,
|
|
ContactListComponent,
|
|
MainSidenavComponent
|
|
],
|
|
providers : [
|
|
ContactsService
|
|
]
|
|
})
|
|
export class FuseContactsModule
|
|
{
|
|
}
|