CSS not loading right, but give F5 and load normally - Angular 5 with Material

Asked

Viewed 220 times

0

Hello,

I am creating a system with Angular 5 together with Material (CSS), but I have the following problem in my project: When soon in the system, CSS is loaded poorly (see image below).

inserir a descrição da imagem aqui

But when I give the F5, the screen fixes according to my CSS:

inserir a descrição da imagem aqui

I have no idea where this problem starts, anyone has any idea?

  • Put the full HTML there, with the <head> including, and what you have created of CSS also

  • CSS is being loaded into the <head>?

  • Oddly enough, it was a Viewencapsulation problem in Login... I can’t understand why, but when I removed the encapsulation from Login, it started working normally again.

  • ok - now, you have several options - add a little context of how your html looked, and add your own answer , or remove that question. ( As it stands it is only generating noise as a question without sufficient context. If you put your own answer, you can help people who have the same problem, and still earn reputation points.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.