Skip to content

Commit a02d006

Browse files
committed
Step 2: Add Angular Material
1 parent 36bc818 commit a02d006

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/app/app-material.module.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { NgModule } from '@angular/core';
2+
import { MatToolbarModule, MatCardModule, MatButtonModule } from '@angular/material';
3+
4+
const materialModules = [
5+
MatToolbarModule,
6+
MatCardModule,
7+
MatButtonModule,
8+
];
9+
10+
@NgModule({
11+
imports: materialModules,
12+
exports: materialModules
13+
})
14+
export class AppMaterialModule { }

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { NgModule } from '@angular/core';
33

44
import { AppComponent } from './app.component';
55
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
6+
import { AppMaterialModule } from './app-material.module';
67

78
@NgModule({
89
declarations: [
@@ -11,6 +12,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
1112
imports: [
1213
BrowserModule,
1314
BrowserAnimationsModule
15+
AppMaterialModule,
1416
],
1517
providers: [],
1618
bootstrap: [AppComponent]

0 commit comments

Comments
 (0)