Automatically wraps global dependencies into an Angular injectable. Works for most libraries that support requirejs.
People
Repo info
Activity
Ryan Warner
@RyanWarner
do we have to include angular-global-injector as a dependency to our app? I keep getting Unknown provider: _Provider <- _ <- HomeController despite including script tags in the correct order.
Ben Tesser
@btesser
you have to include 'globals' as a dependency. I guess I forgot to mention that in the docs
so angular.module('myapp', ['globals'])
Ryan Warner
@RyanWarner
that makes sense, thank you! I will try this and report back
it works
Ryan Warner
@RyanWarner
when i include globals as a module dependency, I don't even need to include the name of the 3rd party library in my controller
Ben Tesser
@btesser
That
That's a bit odd, but good to here. I've been making a plunkr example to make it easier to get started with. Also I'd appreciate any feedback or issues because I don't have a ton of user's yet and I'd love for the project to grow :)