Skip to content

Commit

Permalink
Merge pull request #1 from ksurendra/remove-material-module
Browse files Browse the repository at this point in the history
Removed separate module for material includes - angular 9
  • Loading branch information
ksurendra authored Jun 10, 2020
2 parents 7abde01 + 985fb7b commit 01bcacd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 72 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ Material design is one of the most used design systems and Angular team also has

`<body class="mat-typography">`
- `<project-root>/src/app`
- `<project-root>/src/app/angular-material.module.ts` includes all Material imports.
- `<project-root>/src/app/app.routing.module.ts` primary routing module for the project.
- `<project-root>/src/app/app.component.html` primary entry html file that has all code for building the website.
- `<project-root>/src/app/app.component.scss` empty.
- `<project-root>/src/app/app.component.ts` primary component, also includes `MatSideNav`.
- `<project-root>/src/app/app.module.ts` primary module.
- `<project-root>/src/app/app.module.ts` primary module. Also incudes only required material components.

# Build

Expand Down
67 changes: 0 additions & 67 deletions src/app/angular-material.module.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';


const routes: Routes = [];

@NgModule({
Expand Down
14 changes: 12 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AngularMaterialModule } from './angular-material.module';

import { MatToolbarModule } from '@angular/material/toolbar';
import { MatIconModule } from '@angular/material/icon';
import { MatSidenavModule} from '@angular/material/sidenav';
import { MatGridListModule } from '@angular/material/grid-list';
import { MatListModule } from '@angular/material/list';


@NgModule({
declarations: [
Expand All @@ -14,7 +20,11 @@ import { AngularMaterialModule } from './angular-material.module';
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
AngularMaterialModule,
MatToolbarModule,
MatIconModule,
MatSidenavModule,
MatGridListModule,
MatListModule,
],
providers: [],
bootstrap: [AppComponent]
Expand Down

0 comments on commit 01bcacd

Please sign in to comment.