Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to return the ocLazyLoading promise on resolve #998

Merged
merged 2 commits into from Sep 2, 2016

Conversation

kmilov
Copy link

@kmilov kmilov commented Aug 23, 2016

When you add your own directives in the filesConfig property, they are loaded via ocLazyLoad in the resolve property for every $state in the Styleguide App.

error: as the ocLazyLoading promise is not being returned in the resolve, you might experience some weird errors saying that your directives are not defined, also, when you reload the browser, sometimes you will experience an error with $$animateJS

the $$animateJS error is related to angular/angular.js#14291

also, I added the return statement in the resolve property to return the ocLazyLoad promise so the view will not be printed until all the modules are loaded.

@junaidrsd junaidrsd merged commit 7a54e17 into SC5:master Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants