angular-css-injector icon indicating copy to clipboard operation
angular-css-injector copied to clipboard

setSinglePageMode remove CSS files a little bit so early

Open GabrielDelepine opened this issue 11 years ago • 0 comments
trafficstars

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).

GabrielDelepine avatar Nov 25 '13 09:11 GabrielDelepine