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

Created a factory to properly inject MediumEditor. #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Created a factory to properly inject MediumEditor. #58

wants to merge 1 commit into from

Conversation

austinthedeveloper
Copy link

In certain circumstances, jshint will throw an error in applications where a plugin has not been declared correctly in Angular. When it is injected as a factory and called when needed, jshint will stop throwing that error.

This solution is based from this Stack Overflow question about injecting jQuery and underscore:

http://stackoverflow.com/questions/17408977/inject-jquery-and-underscore-to-angular-js-component

@thijsw
Copy link
Owner

thijsw commented Aug 9, 2016

Thanks for this PR, has anybody time to look into this, @simison ?

@simison
Copy link
Collaborator

simison commented Aug 9, 2016

Very low on time right now, but LGTM (tho I didn't test this).

I also think Factory is the right way to inject external libraries. 👍

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.

3 participants