1
1
import { NgModule , CUSTOM_ELEMENTS_SCHEMA } from '@angular/core' ;
2
2
import { BrowserModule } from '@angular/platform-browser' ;
3
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
4
3
import { ReactiveFormsModule } from '@angular/forms' ;
5
- import { MatFormFieldModule } from '@angular/material/form-field' ;
6
- import { MatInputModule } from '@angular/material/input' ;
7
- import { MatChipsModule } from '@angular/material/chips' ;
8
- import { MatExpansionModule } from '@angular/material/expansion' ;
9
- import { MatTableModule } from '@angular/material/table' ;
4
+
10
5
import { AppRoutingModule } from './app-routing.module' ;
11
6
import { AppComponent } from './app.component' ;
7
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
12
8
import { MaterialModule } from './material/material.module' ;
13
- import { HttpClientModule } from '@angular/common/http' ;
14
-
15
- // Custom components
16
9
import { LogoComponent } from './component/logo/logo.component' ;
17
10
import { MatrixComponent } from './component/matrix/matrix.component' ;
18
11
import { SidenavButtonsComponent } from './component/sidenav-buttons/sidenav-buttons.component' ;
19
12
import { TopHeaderComponent } from './component/top-header/top-header.component' ;
20
13
import { ActivityDescriptionComponent } from './component/activity-description/activity-description.component' ;
14
+ import { ymlService } from './service/yaml-parser/yaml-parser.service' ;
15
+ import { HttpClientModule } from '@angular/common/http' ;
21
16
import { CircularHeatmapComponent } from './component/circular-heatmap/circular-heatmap.component' ;
22
17
import { MappingComponent } from './component/mapping/mapping.component' ;
23
18
import { ReadmeToHtmlComponent } from './component/readme-to-html/readme-to-html.component' ;
@@ -27,9 +22,11 @@ import { AboutUsComponent } from './component/about-us/about-us.component';
27
22
import { DependencyGraphComponent } from './component/dependency-graph/dependency-graph.component' ;
28
23
import { TeamsComponent } from './component/teams/teams.component' ;
29
24
import { ToStringValuePipe } from './pipe/to-string-value.pipe' ;
30
-
31
- // Services
32
- import { ymlService } from './service/yaml-parser/yaml-parser.service' ;
25
+ import {
26
+ MatDialogModule ,
27
+ MAT_DIALOG_DATA ,
28
+ MatDialogRef ,
29
+ } from '@angular/material/dialog' ;
33
30
34
31
@NgModule ( {
35
32
declarations : [
@@ -51,19 +48,18 @@ import { ymlService } from './service/yaml-parser/yaml-parser.service';
51
48
] ,
52
49
imports : [
53
50
BrowserModule ,
54
- BrowserAnimationsModule ,
55
- ReactiveFormsModule ,
56
- MatFormFieldModule , // Added
57
- MatInputModule , // Added
58
- MatChipsModule , // Added
59
- MatExpansionModule , // Added
60
- MatTableModule , // Added
61
51
AppRoutingModule ,
52
+ BrowserAnimationsModule ,
62
53
MaterialModule ,
54
+ MatDialogModule ,
55
+ ReactiveFormsModule ,
63
56
HttpClientModule ,
64
57
] ,
65
- providers : [ ymlService ] ,
58
+ providers : [
59
+ ymlService ,
60
+ { provide : MAT_DIALOG_DATA , useValue : { } } ,
61
+ { provide : MatDialogRef , useValue : { close : ( dialogResult : any ) => { } } } ,
62
+ ] ,
66
63
bootstrap : [ AppComponent ] ,
67
- schemas : [ CUSTOM_ELEMENTS_SCHEMA ] , // Avoids unknown element issues
68
64
} )
69
65
export class AppModule { }
0 commit comments