#2 ๐ Add Angular Material
Last updated
Was this helpful?
Last updated
Was this helpful?
Angular Material is a UI (User Interface) component library that can help you to style your application based on modern web design principles. The following steps show you how to get started with Angular Material.
Import the Browser Animation Module into file as shown below.
Some features of Angular material require HammerJS
.
Import it into . This file is the entry point of our app.
We will add a built-in material theme globally by including the following line in file.
We will create a new module to include all the material related components. Right click on the ๐ng-material
folder and navigate to 'Angular Generator' and select 'Module'. Then provide the name ng-material
for our new module.
Import this new NgMaterialModule
in ๐src/app/app.module.ts
as shown below.
Open src/app/ng-material/ng-material.module.ts
and REPLACE what is there with the code in