We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ng2Injector
ng1Injector
1 parent 03bdc26 commit 0bbf4cfCopy full SHA for 0bbf4cf
src/angular-hybrid.ts
@@ -247,10 +247,10 @@ upgradeModule.run([
247
// it retrieves from ng1 injector first, then ng2 injector if the token isn't found.
248
const mergedInjector = {
249
get: function(token: any, ng2NotFoundValue?: any) {
250
- const ng2Injector = ng1Injector.get('$$angularInjector');
251
if (ng1Injector.has(token)) {
252
return ng1Injector.get(token);
253
}
+ const ng2Injector = ng1Injector.get('$$angularInjector');
254
return ng2Injector.get(token, ng2NotFoundValue);
255
},
256
};
0 commit comments