Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
cd ang-material-owneraccount
npm install --save @angular/material @angular/cdk @angular/animations
we need to configure animations, by importing BrowserAnimationsModule into the app.module.ts
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
(under imports) BrowserAnimationsModule
import theme in styles.css file
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
install hamerjs
npm install --save hammerjs
After the installation, we are going to import it as a first line in the maint.ts file:
import 'hammerjs';
last step, adding Material Icons to index.html
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
Add Comment
Please, Sign In to add comment