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
Post a Comment