Adding Angular Material to Our Application

Learn how to add Angular Material controls and theming to the Angular component.

Adding Angular Material controls

To start using a UI control from the Angular Material library, such as a button or checkbox, we need to import its corresponding module. Let’s see how this is done by adding a button control in the main component of an Angular application:

  1. Open the app.module.ts file and add the following import statement to use Angular Material buttons:

Get hands-on with 1200+ tech skills courses.