provide static APP_ID

This commit is contained in:
Roman Hotsiy 2016-12-13 08:10:18 +02:00
parent bba35337e6
commit 03e779c0d1
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -1,4 +1,4 @@
import { NgModule, ErrorHandler } from '@angular/core';
import { NgModule, ErrorHandler, APP_ID } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Redoc, SecurityDefinitions, Method, REDOC_DIRECTIVES } from './components/index';
@ -35,6 +35,7 @@ import { SpecManager } from './utils/spec-manager';
ComponentParser,
ContentProjector,
LazyTasksService,
{ provide: APP_ID, useValue: 'redoc' },
{ provide: ErrorHandler, useClass: CustomErrorHandler },
{ provide: COMPONENT_PARSER_ALLOWED, useValue: { 'security-definitions': SecurityDefinitions} }
],