Problem with angular material INPUT

0

I have a problem with including the input of angular material to my project because it does not work as it should visually. I leave you an image of how it looks

I followed the instructions in the documentation step by step and nothing. This is my app module and my respective component

I've been with this for weeks and I can not fix it, any suggestions?

    
asked by Jhondavid17 03.01.2018 в 19:28
source

1 answer

0

It may be that you need to include the subject. You must include the pre-loaded theme of Angular Material in the " styles.css "

@import "~@angular/material/prebuilt-themes/indigo-pink.css";

If you need more information check: Theming your Angular Material app

  

Including a theme is required to apply all of the core and theme styles to your application. To get started with a prebuilt theme, include one of Angular Material's prebuilt themes globally in your application. If you're using the Angular CLI, you can add this to your styles.css:

    
answered by 03.01.2018 в 20:13