-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.module.ts
More file actions
47 lines (45 loc) · 1.46 KB
/
app.module.ts
File metadata and controls
47 lines (45 loc) · 1.46 KB
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
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import { routes } from './app.routing';
import { AppComponent } from './app.component';
import {
ARTICLES_LIST,
ARTICLES_REFACTORED_TITLE_LIST,
CommonDocsModule,
OLD_ROUTES_FROM_OLD_SITE,
PORTFOLIO_LIST,
SeoService
} from '@valor-software/common-docs';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ScullyLibModule } from '@scullyio/ng-lib';
import { articlesList, articlesRefactoringTitlesList } from '../../../../assets/articles/articlesList';
import { projectsList } from '../assets/portfolio/portfolio.list';
import { linksFromOldSite } from '../../../../assets/articles/brokenRoutes';
import { NotFoundComponent } from './404.component';
@NgModule({
declarations: [
AppComponent,
NotFoundComponent
],
imports: [
BrowserModule,
RouterModule.forRoot(routes, { anchorScrolling: 'enabled', onSameUrlNavigation: 'reload' }),
CommonDocsModule,
BrowserAnimationsModule,
ScullyLibModule,
],
providers: [
SeoService,
{ provide: ARTICLES_LIST, useValue: articlesList },
{ provide: ARTICLES_REFACTORED_TITLE_LIST, useValue: articlesRefactoringTitlesList },
{ provide: PORTFOLIO_LIST, useValue: projectsList },
{ provide: OLD_ROUTES_FROM_OLD_SITE, useValue: linksFromOldSite },
],
bootstrap: [AppComponent],
exports: [
NotFoundComponent
]
})
export class AppModule {
}