mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-15 12:55:14 +00:00
48 lines
1.2 KiB
TypeScript
48 lines
1.2 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { MatButtonModule, MatDividerModule, MatIconModule, MatTabsModule } from '@angular/material';
|
|
|
|
import { FuseSharedModule } from '@fuse/shared.module';
|
|
|
|
import { ProfileService } from './profile.service';
|
|
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';
|
|
|
|
const routes = [
|
|
{
|
|
path : 'profile',
|
|
component: FuseProfileComponent,
|
|
resolve : {
|
|
profile: ProfileService
|
|
}
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
FuseProfileComponent,
|
|
FuseProfileTimelineComponent,
|
|
FuseProfileAboutComponent,
|
|
FuseProfilePhotosVideosComponent
|
|
],
|
|
imports : [
|
|
RouterModule.forChild(routes),
|
|
|
|
MatButtonModule,
|
|
MatDividerModule,
|
|
MatIconModule,
|
|
MatTabsModule,
|
|
|
|
FuseSharedModule
|
|
],
|
|
providers : [
|
|
ProfileService
|
|
]
|
|
})
|
|
export class ProfileModule
|
|
{
|
|
}
|