Step 1: First go to the project (inside the project folder) run the following command.
It would ask us for to share project analyatics details we can share of we can deniy by passing respective Y/N
Mukeshs-MacBook-Air:angular-matrial-project mukeshchoudhary$ ng add @angular/material
? Would you like to share anonymous usage data about this project with the Angular Team at
Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more
details and how to change this setting, see http://angular.io/analytics. Yes
Thank you for sharing anonymous usage data. Would you change your mind, the following
command will disable this feature entirely:
ng analytics project off
Installing packages for tooling via npm.
Installed packages for tooling via npm.
? Choose a prebuilt theme name, or "custom" for a custom theme: Indigo/Pink [ Preview: https://material.angular.io?theme=indigo-pink ]
? Set up global Angular Material typography styles? Yes
? Set up browser animations for Angular Material? Yes
UPDATE package.json (1364 bytes)
✔ Packages installed successfully.
UPDATE src/app/app.module.ts (502 bytes)
UPDATE angular.json (3940 bytes)
UPDATE src/index.html (524 bytes)
UPDATE src/styles.css (181 bytes)
Mukeshs-MacBook-Air:angular-matrial-project mukeshchoudhary$
But suppose later you wish to off then we can use this command
ng analytics project off
Then it would ask for theme which we want to include for angular material.
then it would ask a few more questions like the above mentioned. -- Read carefully for better understanding.
Comments
Post a Comment