Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix for loading a module with dependencies with the oc-lazy-load directive #213

Merged
merged 1 commit into from
Aug 28, 2015

Conversation

onaluf
Copy link

@onaluf onaluf commented Jul 14, 2015

There is a bug that happens when you try to inject into a page a module at more that one place using the oc-lazy-load directive. It only happens when the module you try to inject has some files dependencies declared.

I created a reduced test case in this Plunker: http://plnkr.co/edit/pAq7cneNylQmfCFHZV66

Not 100% sure if the solution is the best way to solve the problem nor if it will have some unwanted side effect. The unit tests pass successfully.

@onaluf
Copy link
Author

onaluf commented Aug 4, 2015

Any chance of having this merged? If you want another solution to the problem don't hesitate to ask and I'll try to implement it...

@ocombe
Copy link
Owner

ocombe commented Aug 6, 2015

I'm in holidays for 2 more weeks and a half, it will have to wait
until I get back, sorry :)

@ocombe
Copy link
Owner

ocombe commented Aug 28, 2015

Everything looks fine, and it doesn't seem like it breaks anything :)
Thanks for the PR !

ocombe added a commit that referenced this pull request Aug 28, 2015
fix: loading a module with dependencies with multiple oc-lazy-load directives
@ocombe ocombe merged commit f18acbc into ocombe:master Aug 28, 2015
@onaluf
Copy link
Author

onaluf commented Aug 28, 2015

Great, thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants