Skip to content

Instantly share code, notes, and snippets.

@gparlakov
Last active May 5, 2018 19:53
Show Gist options
  • Save gparlakov/105f97a355e502fa734c8adc7e05ed80 to your computer and use it in GitHub Desktop.
Save gparlakov/105f97a355e502fa734c8adc7e05ed80 to your computer and use it in GitHub Desktop.
ng-gotchas-module-lazy-injector
var lazyInjector = {}; // provided at lazy-module start
lazyInjector.prototype = injector; // 'inherit' the root injector
// and then at LazyModule instantiation:
lazyInjector["UserProfile"] = new LazyUserService();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment