angular - ViewEncapsulation.None keep all css componenet in head -


i using

encapsulation: viewencapsulation.none, 

other methood mess styles.

i have login component redirect inner page.

the inner page load css:

 styleurls: ['app/css/bootstrap-3.3.7-dist/css/bootstrap.min.css','app/main/master.component.css'] 

i have logout button redirect login page

 localstorage.removeitem("token");      this.router.navigate(['/login']); 

pressing button redirect login page style of inner page stay on login page too(inject index.html head).

so ended login page has bootsrap css totally wrong.

how can navigate between component without keeping styles injected head?

is practice add styles component html itself?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -