-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
home.module.ts
64 lines (63 loc) · 2.12 KB
/
home.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { SharedModule } from '@ngx-starter-kit/shared';
import { ThemePickerModule } from '@ngx-starter-kit/theme-picker';
import { HeaderComponent } from './components/header/header.component';
import { FooterComponent } from './components/footer/footer.component';
import { HomeLayoutComponent } from './containers/home-layout/home-layout.component';
import { LandingComponent } from './containers/landing/landing.component';
import { BlogComponent } from './containers/blog/blog.component';
import { AboutComponent } from './containers/about/about.component';
import { ScrollToTopModule } from '@ngx-starter-kit/scroll-to-top';
import { SvgViewerModule } from '@ngx-starter-kit/svg-viewer';
import { FeaturesComponent } from './containers/features/features.component';
import { StickyHeaderDirective } from './components/header/sticky-header.directive';
@NgModule({
imports: [
SharedModule,
ScrollToTopModule,
ThemePickerModule,
SvgViewerModule,
RouterModule.forChild([
/* {path: '', pathMatch: 'full', component: InsertYourComponentHere} */
{
path: '',
component: HomeLayoutComponent,
data: { title: 'Home', animation: 'home' },
children: [
{
path: '',
component: LandingComponent,
data: { title: 'Landing', animation: 'home' },
},
{
path: 'blog',
component: BlogComponent,
data: { title: 'Blog', animation: 'blog' },
},
{
path: 'about',
component: AboutComponent,
data: { title: 'About', animation: 'about' },
},
{
path: 'features',
component: FeaturesComponent,
data: { title: 'Features', animation: 'features' },
},
],
},
]),
],
declarations: [
HeaderComponent,
StickyHeaderDirective,
FooterComponent,
HomeLayoutComponent,
LandingComponent,
BlogComponent,
AboutComponent,
FeaturesComponent,
],
})
export class HomeModule {}