Using Angular Material in an angular app with some best practices
Angular Material is a UI component library for angular. Ok let's see how do you use this within an angular application using some of the best practices. Prerequisites 1. Code editor (Ex: VS Code) installed 2. Node.js installed 3. Angular cli installed ( https://cli.angular.io/ ) I think you already know how to create a new angular application with Angular cli. If you can't remember lets create a new angular app. 1. Create an angular app Open the terminal and user command: ng new [name of your app] 2. Install angular material Navigate inside your app with command prompt and run command: ng add @angular/material When it prompts to install: 1. HammerJs for Gesture recognition: Select Yes 2. Setup browser animations: Select Yes 3. Create a module to hold angular material components By creating a dedicate module for this will help to import all the required angular material components that we are going to use in the app within this module. Then we can im...