Hello Guys,
Hope you are doing well,
I have one question i am create a simple angular-17 module federation project. Install angular material but not working how to install.
Project Structure->
angular-project main file inside two module e-commerce and food-delivery i want to install angular material in e-commerce.
Ankit RaiPosted Apr 7, 2024, 7:22 AM
Mohammad Tahir Ansari Here i am use angular 17 version you known angular 17 not provide module files hence here i am not include material file.
Tahir AnsariPosted Apr 7, 2024, 5:59 AM
Navigate to the root directory of your
e-commercemodule:Install Angular Material and its dependencies using npm or yarn:
In your
e-commerce.module.tsfile, import the necessary modules:Create a theme CSS file (e.g.,
e-commerce-theme.css) and define your theme styles. You can reference the Material Design documentation for theme customization options: https://material.angular.io/guide/themingInclude your theme CSS file in
angular.jsonunder thestylesarray for thee-commercemodule: