2018-01-08 12:37:52 +03:00

39 lines
1.0 KiB
TypeScript

import { NgModule } from '@angular/core';
import { SharedModule } from '../../../../core/modules/shared.module';
import { RouterModule } from '@angular/router';
import { FuseProfileComponent } from './profile.component';
import { FuseProfileTimelineComponent } from './tabs/timeline/timeline.component';
import { FuseProfileAboutComponent } from './tabs/about/about.component';
import { FuseProfilePhotosVideosComponent } from './tabs/photos-videos/photos-videos.component';
import { ProfileService } from './profile.service';
const routes = [
{
path : 'profile',
component: FuseProfileComponent,
resolve : {
profile: ProfileService
}
}
];
@NgModule({
declarations: [
FuseProfileComponent,
FuseProfileTimelineComponent,
FuseProfileAboutComponent,
FuseProfilePhotosVideosComponent
],
imports : [
SharedModule,
RouterModule.forChild(routes)
],
providers : [
ProfileService
]
})
export class ProfileModule
{
}