Skip to content

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