SC5 / sc5-styleguide

Styleguide generator is a handy little tool that helps you generate good looking styleguides from stylesheets using KSS notation
http://styleguide.sc5.io/
MIT License
1.26k stars 171 forks source link

Angular directives not running after refresh #803

Open jamieholliday opened 8 years ago

jamieholliday commented 8 years ago

If I refresh the page my angular directives are not running on the page. If however I save a file and the app recompiles then the directives work fine. I think this may have something to do with the the components are being lazily loaded before the module but I am not 100% sure on this because have not used this lazy loading modules before

After a bit more testing I have found that if I navigate to a route and back to the page with the directive on then they also work fine so its just on initial load that seems to be the issue

hurrtz commented 8 years ago

I can confirm that behaviour. I am, too, unsure if this might come from having too many angular directives (currently about 50, each with its own js and css file) or if this has anything to do with my build-configuration which disables html5 mode and encapsulation. The latter can't be testet on my side, though.