0

I implemented a project with material design and angular 2. I imported module for material design, added the theme. My app have only main module. Material design is applied only im main component (and his child component), not on all secondary components. Please, can you help me to find a solution for this issue? You can see that I have 2 components. One of them have material design applied and the other one no.

3
  • You should be including material design with a <style> tag in your index.html instead of in your component
    – rob
    Mar 20, 2017 at 17:06
  • Thanks for your help. Sorry, but I don't understand exactly how to include material design for angular 2 with a style tag in index.html I only put this for theme, but it doesn't work <link href="../node_modules/@angular/material/core/theming/prebuilt/deeppurple-amber.css" rel="stylesheet"> Please, can you prove more details? Mar 21, 2017 at 8:16
  • take a look at one of the sample apps in the material site plnkr.co/edit/?p=preview or their theming guide material.angular.io/guide/theming
    – rob
    Mar 21, 2017 at 13:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.