Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

setSinglePageMode remove CSS files a little bit so early #4

Open
GabrielDelepine opened this issue Nov 25, 2013 · 0 comments
Open

setSinglePageMode remove CSS files a little bit so early #4

GabrielDelepine opened this issue Nov 25, 2013 · 0 comments

Comments

@GabrielDelepine
Copy link
Owner

Hi, (I open an issue to my own repository, because I don't have enough time this days to fix it by myself).

With angular-css-injector, set setSinglePageMode(TRUE) remove the CSS files added dynamically every time the view change.

With angular 1.0.8 I didn't find the way to remove the CSS files between the moment the view be loaded and the view be display.

I only find the way to remove the CSS files before the new view be loaded (event $locationChangeStart) and it's so early.
The second possibility is remove the CSS files after the new view be loaded and displayed (event $locationChangeSuccess) but in this case it's so late and I remove also the CSS files belong to the new view.

Does anyone know how to improve this behavior ? Maybe with the event $routeUpdate but in this case the reloadOnSearch property has been set to false (I don't know what does it mean, there is a little explanation here http://stackoverflow.com/a/14765954/2547632).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant