Skip to content

Instantly share code, notes, and snippets.

View rajasharma1603's full-sized avatar
🎯
Focusing

Raja Sharma rajasharma1603

🎯
Focusing
View GitHub Profile
@rajasharma1603
rajasharma1603 / material.module.ts
Created April 11, 2020 15:14
One single module import file to import all Angular Material Modules.
// IMPORT ALL MATERIAL COMPONENTS
// #STEPS
// 1- Import this file as module in app.module.ts ==> import { MaterialModule } from './xyz/abc';
// 2- Initialize it in imports:[] array ==> imports:[MaterialModule]
import { NgModule } from '@angular/core';
// *************** FORM CONTROLS ***************
import {MatAutocompleteModule} from '@angular/material/autocomplete';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatDatepickerModule} from '@angular/material/datepicker';