Skip to content

Commit

Permalink
fix(deps): Error if HTTP_INTERCEPTORS registered via providers
Browse files Browse the repository at this point in the history
fix #456
  • Loading branch information
vogloblinsky committed Feb 11, 2018
1 parent 163dc69 commit 89c3335
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/app/compiler/deps/helpers/symbol-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export class SymbolHelper {
private importsUtil = new ImportsUtil();

public parseDeepIndentifier(name: string): IParseDeepIdentifierResult {
if (typeof name === 'undefined') {
return {
name: '',
type: ''
};
}
let nsModule = name.split('.');
let type = this.getType(name);

Expand Down
4 changes: 2 additions & 2 deletions test/src/todomvc-ng2/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import { NoopInterceptor } from './shared/interceptors/noopinterceptor.intercept
},
{
provide: HTTP_INTERCEPTORS,
useExisting: NoopInterceptor,
multi: true
useFactory: (languageService: GlobalLanguageService) => new HttpConfigurationInterceptor(languageService),
deps: [GlobalLanguageService]
}
],
bootstrap: [AppComponent]
Expand Down

0 comments on commit 89c3335

Please sign in to comment.