@angular/platform-browser-dynamic 7.0.0-rc.1 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/platform-browser-dynamic-testing.umd.js +6 -3
- package/bundles/platform-browser-dynamic-testing.umd.js.map +1 -1
- package/bundles/platform-browser-dynamic-testing.umd.min.js +1 -1
- package/bundles/platform-browser-dynamic-testing.umd.min.js.map +1 -1
- package/bundles/platform-browser-dynamic.umd.js +16 -5
- package/bundles/platform-browser-dynamic.umd.js.map +1 -1
- package/bundles/platform-browser-dynamic.umd.min.js +2 -2
- package/bundles/platform-browser-dynamic.umd.min.js.map +1 -1
- package/esm2015/src/compiler_factory.js +2 -2
- package/esm2015/src/platform-browser-dynamic.js +5 -3
- package/esm2015/src/platform_core_dynamic.js +2 -2
- package/esm2015/src/platform_providers.js +4 -2
- package/esm2015/src/resource_loader/resource_loader_cache.js +3 -1
- package/esm2015/src/version.js +5 -3
- package/esm2015/testing/src/platform_core_dynamic_testing.js +2 -2
- package/esm2015/testing/src/testing.js +5 -3
- package/esm5/src/compiler_factory.js +2 -2
- package/esm5/src/platform-browser-dynamic.js +5 -2
- package/esm5/src/platform_core_dynamic.js +2 -2
- package/esm5/src/platform_providers.js +4 -1
- package/esm5/src/resource_loader/resource_loader_cache.js +3 -1
- package/esm5/src/version.js +5 -2
- package/esm5/testing/src/platform_core_dynamic_testing.js +2 -2
- package/esm5/testing/src/testing.js +5 -2
- package/fesm2015/platform-browser-dynamic.js +16 -8
- package/fesm2015/platform-browser-dynamic.js.map +1 -1
- package/fesm2015/testing.js +6 -4
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/platform-browser-dynamic.js +16 -5
- package/fesm5/platform-browser-dynamic.js.map +1 -1
- package/fesm5/testing.js +6 -3
- package/fesm5/testing.js.map +1 -1
- package/package.json +5 -5
- package/platform-browser-dynamic.metadata.json +1 -1
- package/src/compiler_factory.d.ts +1 -1
- package/src/platform-browser-dynamic.d.ts +4 -1
- package/src/platform_core_dynamic.d.ts +1 -1
- package/src/platform_providers.d.ts +3 -0
- package/src/resource_loader/resource_loader_cache.d.ts +2 -0
- package/src/version.d.ts +3 -0
- package/testing/src/platform_core_dynamic_testing.d.ts +1 -1
- package/testing/src/testing.d.ts +4 -1
- package/testing/testing.metadata.json +1 -1
package/fesm5/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v7.0.
|
|
2
|
+
* @license Angular v7.0.3
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -158,7 +158,7 @@ var TestingCompilerImpl = /** @class */ (function () {
|
|
|
158
158
|
/**
|
|
159
159
|
* Platform for dynamic tests
|
|
160
160
|
*
|
|
161
|
-
* @
|
|
161
|
+
* @publicApi
|
|
162
162
|
*/
|
|
163
163
|
var platformCoreDynamicTesting = createPlatformFactory(ɵplatformCoreDynamic, 'coreDynamicTesting', [
|
|
164
164
|
{ provide: COMPILER_OPTIONS, useValue: { providers: COMPILER_PROVIDERS }, multi: true }, {
|
|
@@ -183,11 +183,14 @@ var platformCoreDynamicTesting = createPlatformFactory(ɵplatformCoreDynamic, 'c
|
|
|
183
183
|
* Use of this source code is governed by an MIT-style license that can be
|
|
184
184
|
* found in the LICENSE file at https://angular.io/license
|
|
185
185
|
*/
|
|
186
|
+
/**
|
|
187
|
+
* @publicApi
|
|
188
|
+
*/
|
|
186
189
|
var platformBrowserDynamicTesting = createPlatformFactory(platformCoreDynamicTesting, 'browserDynamicTesting', ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
|
187
190
|
/**
|
|
188
191
|
* NgModule for testing.
|
|
189
192
|
*
|
|
190
|
-
*
|
|
193
|
+
* @publicApi
|
|
191
194
|
*/
|
|
192
195
|
var BrowserDynamicTestingModule = /** @class */ (function () {
|
|
193
196
|
function BrowserDynamicTestingModule() {
|
package/fesm5/testing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/metadata_overrider.ts","../../../../../../packages/platform-browser-dynamic/testing/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/private_export_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.ts","../../../../../../packages/platform-browser-dynamic/testing/public_api.ts","../../../../../../packages/platform-browser-dynamic/testing/index.ts","../../../../../../packages/platform-browser-dynamic/testing/testing.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/platform-browser';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) { super(); }\n\n insertRootElement(rootElId: string) {\n const rootEl = <HTMLElement>getDOM().firstChild(\n getDOM().content(getDOM().createTemplate(`<div id=\"${rootElId}\"></div>`)));\n\n // TODO(juliemr): can/should this be optional?\n const oldRoots = getDOM().querySelectorAll(this._doc, '[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\n getDOM().appendChild(this._doc.body, rootEl);\n }\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// `MetadataOverrider` has been moved to core/testing to allow using it from the render3 TestBed\nexport {ɵMetadataOverrider as MetadataOverrider} from '@angular/core/testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CompileReflector, DirectiveResolver, ERROR_COMPONENT_TYPE, NgModuleResolver, PipeResolver} from '@angular/compiler';\nimport {MockDirectiveResolver, MockNgModuleResolver, MockPipeResolver} from '@angular/compiler/testing';\nimport {CompilerFactory, CompilerOptions, Component, ComponentFactory, Directive, Injector, ModuleWithComponentFactories, NgModule, NgModuleFactory, Pipe, StaticProvider, Type, ɵstringify as stringify} from '@angular/core';\nimport {MetadataOverride, ɵTestingCompiler as TestingCompiler, ɵTestingCompilerFactory as TestingCompilerFactory} from '@angular/core/testing';\nimport {ɵCompilerImpl as CompilerImpl} from '@angular/platform-browser-dynamic';\n\nimport {MetadataOverrider} from './metadata_overrider';\n\nexport const COMPILER_PROVIDERS: StaticProvider[] = [\n {provide: MockPipeResolver, deps: [CompileReflector]},\n {provide: PipeResolver, useExisting: MockPipeResolver},\n {provide: MockDirectiveResolver, deps: [CompileReflector]},\n {provide: DirectiveResolver, useExisting: MockDirectiveResolver},\n {provide: MockNgModuleResolver, deps: [CompileReflector]},\n {provide: NgModuleResolver, useExisting: MockNgModuleResolver},\n];\n\nexport class TestingCompilerFactoryImpl implements TestingCompilerFactory {\n constructor(private _injector: Injector, private _compilerFactory: CompilerFactory) {}\n\n createTestingCompiler(options: CompilerOptions[]): TestingCompiler {\n const compiler = <CompilerImpl>this._compilerFactory.createCompiler(options);\n return new TestingCompilerImpl(\n compiler, compiler.injector.get(MockDirectiveResolver),\n compiler.injector.get(MockPipeResolver), compiler.injector.get(MockNgModuleResolver));\n }\n}\n\nexport class TestingCompilerImpl implements TestingCompiler {\n private _overrider = new MetadataOverrider();\n constructor(\n private _compiler: CompilerImpl, private _directiveResolver: MockDirectiveResolver,\n private _pipeResolver: MockPipeResolver, private _moduleResolver: MockNgModuleResolver) {}\n get injector(): Injector { return this._compiler.injector; }\n\n compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T> {\n return this._compiler.compileModuleSync(moduleType);\n }\n\n compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>> {\n return this._compiler.compileModuleAsync(moduleType);\n }\n compileModuleAndAllComponentsSync<T>(moduleType: Type<T>): ModuleWithComponentFactories<T> {\n return this._compiler.compileModuleAndAllComponentsSync(moduleType);\n }\n\n compileModuleAndAllComponentsAsync<T>(moduleType: Type<T>):\n Promise<ModuleWithComponentFactories<T>> {\n return this._compiler.compileModuleAndAllComponentsAsync(moduleType);\n }\n\n getComponentFactory<T>(component: Type<T>): ComponentFactory<T> {\n return this._compiler.getComponentFactory(component);\n }\n\n checkOverrideAllowed(type: Type<any>) {\n if (this._compiler.hasAotSummary(type)) {\n throw new Error(`${stringify(type)} was AOT compiled, so its metadata cannot be changed.`);\n }\n }\n\n overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): void {\n this.checkOverrideAllowed(ngModule);\n const oldMetadata = this._moduleResolver.resolve(ngModule, false);\n this._moduleResolver.setNgModule(\n ngModule, this._overrider.overrideMetadata(NgModule, oldMetadata, override));\n this.clearCacheFor(ngModule);\n }\n overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): void {\n this.checkOverrideAllowed(directive);\n const oldMetadata = this._directiveResolver.resolve(directive, false);\n this._directiveResolver.setDirective(\n directive, this._overrider.overrideMetadata(Directive, oldMetadata !, override));\n this.clearCacheFor(directive);\n }\n overrideComponent(component: Type<any>, override: MetadataOverride<Component>): void {\n this.checkOverrideAllowed(component);\n const oldMetadata = this._directiveResolver.resolve(component, false);\n this._directiveResolver.setDirective(\n component, this._overrider.overrideMetadata(Component, oldMetadata !, override));\n this.clearCacheFor(component);\n }\n overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): void {\n this.checkOverrideAllowed(pipe);\n const oldMetadata = this._pipeResolver.resolve(pipe, false);\n this._pipeResolver.setPipe(pipe, this._overrider.overrideMetadata(Pipe, oldMetadata, override));\n this.clearCacheFor(pipe);\n }\n loadAotSummaries(summaries: () => any[]) { this._compiler.loadAotSummaries(summaries); }\n clearCache(): void { this._compiler.clearCache(); }\n clearCacheFor(type: Type<any>) { this._compiler.clearCacheFor(type); }\n\n getComponentFromError(error: Error) { return (error as any)[ERROR_COMPONENT_TYPE] || null; }\n\n getModuleId(moduleType: Type<any>): string|undefined {\n return this._moduleResolver.resolve(moduleType, true).id;\n }\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {COMPILER_OPTIONS, CompilerFactory, Injector, PlatformRef, createPlatformFactory} from '@angular/core';\nimport {ɵTestingCompilerFactory as TestingCompilerFactory} from '@angular/core/testing';\nimport {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';\n\nimport {COMPILER_PROVIDERS, TestingCompilerFactoryImpl} from './compiler_factory';\n\n/**\n * Platform for dynamic tests\n *\n * @experimental\n */\nexport const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =\n createPlatformFactory(platformCoreDynamic, 'coreDynamicTesting', [\n {provide: COMPILER_OPTIONS, useValue: {providers: COMPILER_PROVIDERS}, multi: true}, {\n provide: TestingCompilerFactory,\n useClass: TestingCompilerFactoryImpl,\n deps: [Injector, CompilerFactory]\n }\n ]);\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {DOMTestComponentRenderer as ɵDOMTestComponentRenderer} from './dom_test_component_renderer';\nexport {platformCoreDynamicTesting as ɵplatformCoreDynamicTesting} from './platform_core_dynamic_testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {NgModule, PlatformRef, StaticProvider, createPlatformFactory} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic';\nimport {BrowserTestingModule} from '@angular/platform-browser/testing';\n\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\nimport {platformCoreDynamicTesting} from './platform_core_dynamic_testing';\n\nexport * from './private_export_testing';\n\nexport const platformBrowserDynamicTesting = createPlatformFactory(\n platformCoreDynamicTesting, 'browserDynamicTesting',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\n\n/**\n * NgModule for testing.\n *\n *\n */\n@NgModule({\n exports: [BrowserTestingModule],\n providers: [\n {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},\n ]\n})\nexport class BrowserDynamicTestingModule {\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {COMPILER_PROVIDERS as ɵangular_packages_platform_browser_dynamic_testing_testing_a,TestingCompilerFactoryImpl as ɵangular_packages_platform_browser_dynamic_testing_testing_b} from './src/compiler_factory';"],"names":["tslib_1.__extends","getDOM","tslib_1.__param","MetadataOverrider","stringify","platformCoreDynamic","TestingCompilerFactory","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAYA;;;AAI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U,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC;KAC1D;IACH,0BAAC;CAAA,IAAA;;ACzGD;;;;;;;AAQA,AAMA;;;;;AAKA,IAAa,0BAA0B,GACnC,qBAAqB,CAACC,oBAAmB,EAAE,oBAAoB,EAAE;IAC/D,EAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAC,SAAS,EAAE,kBAAkB,EAAC,EAAE,KAAK,EAAE,IAAI,EAAC,EAAE;QACnF,OAAO,EAAEC,uBAAsB;QAC/B,QAAQ,EAAE,0BAA0B;QACpC,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;KAClC;CACF,CAAC;;AC1BN;;;;;;GAMG;;ACNH;;;;;;;IAkBa,6BAA6B,GAAG,qBAAqB,CAC9D,0BAA0B,EAAE,uBAAuB,EACnDC,4CAA2C,CAAC,CAAC;;;;;;AAajD;IAAA;KACC;IADY,2BAA2B;QANvC,QAAQ,CAAC;YACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;YAC/B,SAAS,EAAE;gBACT,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;aACrE;SACF,CAAC;OACW,2BAA2B,CACvC;IAAD,kCAAC;CADD;;ACjCA;;;;;;GAMG;;ACNH;;;;;;GAMG;;ACNH;;GAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"testing.js","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/metadata_overrider.ts","../../../../../../packages/platform-browser-dynamic/testing/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/private_export_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.ts","../../../../../../packages/platform-browser-dynamic/testing/public_api.ts","../../../../../../packages/platform-browser-dynamic/testing/index.ts","../../../../../../packages/platform-browser-dynamic/testing/testing.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/platform-browser';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) { super(); }\n\n insertRootElement(rootElId: string) {\n const rootEl = <HTMLElement>getDOM().firstChild(\n getDOM().content(getDOM().createTemplate(`<div id=\"${rootElId}\"></div>`)));\n\n // TODO(juliemr): can/should this be optional?\n const oldRoots = getDOM().querySelectorAll(this._doc, '[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\n getDOM().appendChild(this._doc.body, rootEl);\n }\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// `MetadataOverrider` has been moved to core/testing to allow using it from the render3 TestBed\nexport {ɵMetadataOverrider as MetadataOverrider} from '@angular/core/testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CompileReflector, DirectiveResolver, ERROR_COMPONENT_TYPE, NgModuleResolver, PipeResolver} from '@angular/compiler';\nimport {MockDirectiveResolver, MockNgModuleResolver, MockPipeResolver} from '@angular/compiler/testing';\nimport {CompilerFactory, CompilerOptions, Component, ComponentFactory, Directive, Injector, ModuleWithComponentFactories, NgModule, NgModuleFactory, Pipe, StaticProvider, Type, ɵstringify as stringify} from '@angular/core';\nimport {MetadataOverride, ɵTestingCompiler as TestingCompiler, ɵTestingCompilerFactory as TestingCompilerFactory} from '@angular/core/testing';\nimport {ɵCompilerImpl as CompilerImpl} from '@angular/platform-browser-dynamic';\n\nimport {MetadataOverrider} from './metadata_overrider';\n\nexport const COMPILER_PROVIDERS: StaticProvider[] = [\n {provide: MockPipeResolver, deps: [CompileReflector]},\n {provide: PipeResolver, useExisting: MockPipeResolver},\n {provide: MockDirectiveResolver, deps: [CompileReflector]},\n {provide: DirectiveResolver, useExisting: MockDirectiveResolver},\n {provide: MockNgModuleResolver, deps: [CompileReflector]},\n {provide: NgModuleResolver, useExisting: MockNgModuleResolver},\n];\n\nexport class TestingCompilerFactoryImpl implements TestingCompilerFactory {\n constructor(private _injector: Injector, private _compilerFactory: CompilerFactory) {}\n\n createTestingCompiler(options: CompilerOptions[]): TestingCompiler {\n const compiler = <CompilerImpl>this._compilerFactory.createCompiler(options);\n return new TestingCompilerImpl(\n compiler, compiler.injector.get(MockDirectiveResolver),\n compiler.injector.get(MockPipeResolver), compiler.injector.get(MockNgModuleResolver));\n }\n}\n\nexport class TestingCompilerImpl implements TestingCompiler {\n private _overrider = new MetadataOverrider();\n constructor(\n private _compiler: CompilerImpl, private _directiveResolver: MockDirectiveResolver,\n private _pipeResolver: MockPipeResolver, private _moduleResolver: MockNgModuleResolver) {}\n get injector(): Injector { return this._compiler.injector; }\n\n compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T> {\n return this._compiler.compileModuleSync(moduleType);\n }\n\n compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>> {\n return this._compiler.compileModuleAsync(moduleType);\n }\n compileModuleAndAllComponentsSync<T>(moduleType: Type<T>): ModuleWithComponentFactories<T> {\n return this._compiler.compileModuleAndAllComponentsSync(moduleType);\n }\n\n compileModuleAndAllComponentsAsync<T>(moduleType: Type<T>):\n Promise<ModuleWithComponentFactories<T>> {\n return this._compiler.compileModuleAndAllComponentsAsync(moduleType);\n }\n\n getComponentFactory<T>(component: Type<T>): ComponentFactory<T> {\n return this._compiler.getComponentFactory(component);\n }\n\n checkOverrideAllowed(type: Type<any>) {\n if (this._compiler.hasAotSummary(type)) {\n throw new Error(`${stringify(type)} was AOT compiled, so its metadata cannot be changed.`);\n }\n }\n\n overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): void {\n this.checkOverrideAllowed(ngModule);\n const oldMetadata = this._moduleResolver.resolve(ngModule, false);\n this._moduleResolver.setNgModule(\n ngModule, this._overrider.overrideMetadata(NgModule, oldMetadata, override));\n this.clearCacheFor(ngModule);\n }\n overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): void {\n this.checkOverrideAllowed(directive);\n const oldMetadata = this._directiveResolver.resolve(directive, false);\n this._directiveResolver.setDirective(\n directive, this._overrider.overrideMetadata(Directive, oldMetadata !, override));\n this.clearCacheFor(directive);\n }\n overrideComponent(component: Type<any>, override: MetadataOverride<Component>): void {\n this.checkOverrideAllowed(component);\n const oldMetadata = this._directiveResolver.resolve(component, false);\n this._directiveResolver.setDirective(\n component, this._overrider.overrideMetadata(Component, oldMetadata !, override));\n this.clearCacheFor(component);\n }\n overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): void {\n this.checkOverrideAllowed(pipe);\n const oldMetadata = this._pipeResolver.resolve(pipe, false);\n this._pipeResolver.setPipe(pipe, this._overrider.overrideMetadata(Pipe, oldMetadata, override));\n this.clearCacheFor(pipe);\n }\n loadAotSummaries(summaries: () => any[]) { this._compiler.loadAotSummaries(summaries); }\n clearCache(): void { this._compiler.clearCache(); }\n clearCacheFor(type: Type<any>) { this._compiler.clearCacheFor(type); }\n\n getComponentFromError(error: Error) { return (error as any)[ERROR_COMPONENT_TYPE] || null; }\n\n getModuleId(moduleType: Type<any>): string|undefined {\n return this._moduleResolver.resolve(moduleType, true).id;\n }\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {COMPILER_OPTIONS, CompilerFactory, Injector, PlatformRef, createPlatformFactory} from '@angular/core';\nimport {ɵTestingCompilerFactory as TestingCompilerFactory} from '@angular/core/testing';\nimport {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';\n\nimport {COMPILER_PROVIDERS, TestingCompilerFactoryImpl} from './compiler_factory';\n\n/**\n * Platform for dynamic tests\n *\n * @publicApi\n */\nexport const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =\n createPlatformFactory(platformCoreDynamic, 'coreDynamicTesting', [\n {provide: COMPILER_OPTIONS, useValue: {providers: COMPILER_PROVIDERS}, multi: true}, {\n provide: TestingCompilerFactory,\n useClass: TestingCompilerFactoryImpl,\n deps: [Injector, CompilerFactory]\n }\n ]);\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {DOMTestComponentRenderer as ɵDOMTestComponentRenderer} from './dom_test_component_renderer';\nexport {platformCoreDynamicTesting as ɵplatformCoreDynamicTesting} from './platform_core_dynamic_testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {NgModule, PlatformRef, StaticProvider, createPlatformFactory} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic';\nimport {BrowserTestingModule} from '@angular/platform-browser/testing';\n\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\nimport {platformCoreDynamicTesting} from './platform_core_dynamic_testing';\n\nexport * from './private_export_testing';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamicTesting = createPlatformFactory(\n platformCoreDynamicTesting, 'browserDynamicTesting',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserTestingModule],\n providers: [\n {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},\n ]\n})\nexport class BrowserDynamicTestingModule {\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/testing';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {COMPILER_PROVIDERS as ɵangular_packages_platform_browser_dynamic_testing_testing_a,TestingCompilerFactoryImpl as ɵangular_packages_platform_browser_dynamic_testing_testing_b} from './src/compiler_factory';"],"names":["tslib_1.__extends","getDOM","tslib_1.__param","MetadataOverrider","stringify","platformCoreDynamic","TestingCompilerFactory","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAYA;;;AAIA;IAA8CA,4CAAqB;IACjE,kCAAsC,IAAS;QAA/C,YAAmD,iBAAO,SAAG;QAAvB,UAAI,GAAJ,IAAI,CAAK;;KAAc;IAE7D,oDAAiB,GAAjB,UAAkB,QAAgB;QAChC,IAAM,MAAM,GAAgBC,OAAM,EAAE,CAAC,UAAU,CAC3CA,OAAM,EAAE,CAAC,OAAO,CAACA,OAAM,EAAE,CAAC,cAAc,CAAC,eAAY,QAAQ,cAAU,CAAC,CAAC,CAAC,CAAC;;QAG/E,IAAM,QAAQ,GAAGA,OAAM,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QACpE,KAAK,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N;;;;;;GAMG;;ACNH;;;;;;;AAkBA;;;AAGA,IAAa,6BAA6B,GAAG,qBAAqB,CAC9D,0BAA0B,EAAE,uBAAuB,EACnDC,4CAA2C,CAAC,CAAC;;;;;;AAajD;IAAA;KACC;IADY,2BAA2B;QANvC,QAAQ,CAAC;YACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;YAC/B,SAAS,EAAE;gBACT,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;aACrE;SACF,CAAC;OACW,2BAA2B,CACvC;IAAD,kCAAC;CADD;;ACpCA;;;;;;GAMG;;ACNH;;;;;;GAMG;;ACNH;;GAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/platform-browser-dynamic",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
"description": "Angular - library for using Angular in a web browser with JIT compilation",
|
|
5
5
|
"main": "./bundles/platform-browser-dynamic.umd.js",
|
|
6
6
|
"module": "./fesm5/platform-browser-dynamic.js",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"tslib": "^1.9.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/core": "7.0.
|
|
20
|
-
"@angular/common": "7.0.
|
|
21
|
-
"@angular/compiler": "7.0.
|
|
22
|
-
"@angular/platform-browser": "7.0.
|
|
19
|
+
"@angular/core": "7.0.3",
|
|
20
|
+
"@angular/common": "7.0.3",
|
|
21
|
+
"@angular/compiler": "7.0.3",
|
|
22
|
+
"@angular/platform-browser": "7.0.3"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"RESOURCE_CACHE_PROVIDER":[{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"ResourceLoader","line":23,"character":15},"useClass":{"__symbolic":"reference","name":"ɵangular_packages_platform_browser_dynamic_platform_browser_dynamic_a"},"deps":[]}],"platformBrowserDynamic":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"RESOURCE_CACHE_PROVIDER":[{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"ResourceLoader","line":23,"character":15},"useClass":{"__symbolic":"reference","name":"ɵangular_packages_platform_browser_dynamic_platform_browser_dynamic_a"},"deps":[]}],"platformBrowserDynamic":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory","line":28,"character":38},"arguments":[{"__symbolic":"reference","name":"ɵplatformCoreDynamic"},"browserDynamic",{"__symbolic":"reference","name":"ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"}]},"ɵCompilerImpl":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":36,"character":16},{"__symbolic":"reference","module":"@angular/compiler","name":"CompileMetadataResolver","line":36,"character":53},{"__symbolic":"reference","module":"@angular/compiler","name":"TemplateParser","line":37,"character":22},{"__symbolic":"reference","module":"@angular/compiler","name":"StyleCompiler","line":37,"character":53},{"__symbolic":"reference","module":"@angular/compiler","name":"ViewCompiler","line":37,"character":82},{"__symbolic":"reference","module":"@angular/compiler","name":"NgModuleCompiler","line":38,"character":24},{"__symbolic":"reference","name":"SummaryResolver","module":"@angular/compiler","arguments":[{"__symbolic":"reference","name":"Type","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]},{"__symbolic":"reference","module":"@angular/compiler","name":"CompileReflector","line":39,"character":24},{"__symbolic":"reference","module":"@angular/compiler","name":"CompilerConfig","line":39,"character":58},{"__symbolic":"reference","module":"@angular/core","name":"ɵConsole","line":39,"character":83}]}],"getExtraNgModuleProviders":[{"__symbolic":"method"}],"compileModuleSync":[{"__symbolic":"method"}],"compileModuleAsync":[{"__symbolic":"method"}],"compileModuleAndAllComponentsSync":[{"__symbolic":"method"}],"compileModuleAndAllComponentsAsync":[{"__symbolic":"method"}],"loadAotSummaries":[{"__symbolic":"method"}],"hasAotSummary":[{"__symbolic":"method"}],"getComponentFactory":[{"__symbolic":"method"}],"clearCache":[{"__symbolic":"method"}],"clearCacheFor":[{"__symbolic":"method"}],"getModuleId":[{"__symbolic":"method"}]}},"ɵplatformCoreDynamic":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory","line":16,"character":35},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"platformCore","line":16,"character":57},"coreDynamic",[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"COMPILER_OPTIONS","line":17,"character":12},"useValue":{},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"CompilerFactory","line":18,"character":12},"useClass":{"__symbolic":"reference","name":"JitCompilerFactory"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"COMPILER_OPTIONS","line":18,"character":66}]}]]},"ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS","line":20,"character":2},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"COMPILER_OPTIONS","line":22,"character":13},"useValue":{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"ResourceLoader","line":23,"character":37},"useClass":{"__symbolic":"reference","name":"ɵResourceLoaderImpl"},"deps":[]}]},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":26,"character":12},"useValue":{"__symbolic":"reference","module":"@angular/common","name":"ɵPLATFORM_BROWSER_ID","line":26,"character":35}}],"ɵResourceLoaderImpl":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/compiler","name":"ResourceLoader","line":12,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"get":[{"__symbolic":"method"}]}},"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version","line":19,"character":27},"arguments":["7.0.3"]},"JitCompilerFactory":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"@angular/core","name":"CompilerOptions","line":163,"character":30}]}]}],"createCompiler":[{"__symbolic":"method"}]}},"ɵangular_packages_platform_browser_dynamic_platform_browser_dynamic_a":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/compiler","name":"ResourceLoader","line":20,"character":42},"members":{"__ctor__":[{"__symbolic":"constructor"}],"get":[{"__symbolic":"method"}]}}},"origins":{"RESOURCE_CACHE_PROVIDER":"./src/platform-browser-dynamic","platformBrowserDynamic":"./src/platform-browser-dynamic","ɵCompilerImpl":"./src/compiler_factory","ɵplatformCoreDynamic":"./src/platform_core_dynamic","ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS":"./src/platform_providers","ɵResourceLoaderImpl":"./src/resource_loader/resource_loader_impl","VERSION":"./src/version","JitCompilerFactory":"./src/compiler_factory","ɵangular_packages_platform_browser_dynamic_platform_browser_dynamic_a":"./src/resource_loader/resource_loader_cache"},"importAs":"@angular/platform-browser-dynamic"}
|
|
@@ -38,7 +38,7 @@ export declare class CompilerImpl implements Compiler {
|
|
|
38
38
|
*/
|
|
39
39
|
export declare const COMPILER_PROVIDERS: StaticProvider[];
|
|
40
40
|
/**
|
|
41
|
-
* @
|
|
41
|
+
* @publicApi
|
|
42
42
|
*/
|
|
43
43
|
export declare class JitCompilerFactory implements CompilerFactory {
|
|
44
44
|
private _defaultOptions;
|
|
@@ -10,7 +10,10 @@ export * from './private_export';
|
|
|
10
10
|
export { VERSION } from './version';
|
|
11
11
|
export { JitCompilerFactory } from './compiler_factory';
|
|
12
12
|
/**
|
|
13
|
-
* @
|
|
13
|
+
* @publicApi
|
|
14
14
|
*/
|
|
15
15
|
export declare const RESOURCE_CACHE_PROVIDER: Provider[];
|
|
16
|
+
/**
|
|
17
|
+
* @publicApi
|
|
18
|
+
*/
|
|
16
19
|
export declare const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
|
@@ -9,6 +9,6 @@ import { PlatformRef, StaticProvider } from '@angular/core';
|
|
|
9
9
|
/**
|
|
10
10
|
* A platform that included corePlatform and the compiler.
|
|
11
11
|
*
|
|
12
|
-
* @
|
|
12
|
+
* @publicApi
|
|
13
13
|
*/
|
|
14
14
|
export declare const platformCoreDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
|
@@ -12,6 +12,8 @@ import { ResourceLoader } from '@angular/compiler';
|
|
|
12
12
|
*
|
|
13
13
|
* The template cache needs to be built and loaded into window.$templateCache
|
|
14
14
|
* via a separate mechanism.
|
|
15
|
+
*
|
|
16
|
+
* @publicApi
|
|
15
17
|
*/
|
|
16
18
|
export declare class CachedResourceLoader extends ResourceLoader {
|
|
17
19
|
private _cache;
|
package/src/version.d.ts
CHANGED
package/testing/src/testing.d.ts
CHANGED
|
@@ -7,11 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PlatformRef, StaticProvider } from '@angular/core';
|
|
9
9
|
export * from './private_export_testing';
|
|
10
|
+
/**
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
10
13
|
export declare const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
|
11
14
|
/**
|
|
12
15
|
* NgModule for testing.
|
|
13
16
|
*
|
|
14
|
-
*
|
|
17
|
+
* @publicApi
|
|
15
18
|
*/
|
|
16
19
|
export declare class BrowserDynamicTestingModule {
|
|
17
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"platformBrowserDynamicTesting":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"platformBrowserDynamicTesting":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory","line":21,"character":45},"arguments":[{"__symbolic":"reference","name":"ɵplatformCoreDynamicTesting"},"browserDynamicTesting",{"__symbolic":"reference","module":"@angular/platform-browser-dynamic","name":"ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS","line":23,"character":4}]},"BrowserDynamicTestingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":30,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","module":"@angular/platform-browser/testing","name":"BrowserTestingModule","line":31,"character":12}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core/testing","name":"TestComponentRenderer","line":33,"character":14},"useClass":{"__symbolic":"reference","name":"ɵDOMTestComponentRenderer"}}]}]}],"members":{}},"ɵDOMTestComponentRenderer":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/core/testing","name":"TestComponentRenderer","line":16,"character":46},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":17,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT","line":17,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"insertRootElement":[{"__symbolic":"method"}]}},"ɵplatformCoreDynamicTesting":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory","line":20,"character":4},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser-dynamic","name":"ɵplatformCoreDynamic","line":20,"character":26},"coreDynamicTesting",[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"COMPILER_OPTIONS","line":21,"character":16},"useValue":{"providers":{"__symbolic":"reference","name":"ɵangular_packages_platform_browser_dynamic_testing_testing_a"}},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/core/testing","name":"ɵTestingCompilerFactory","line":22,"character":17},"useClass":{"__symbolic":"reference","name":"ɵangular_packages_platform_browser_dynamic_testing_testing_b"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":24,"character":15},{"__symbolic":"reference","module":"@angular/core","name":"CompilerFactory","line":24,"character":25}]}]]},"ɵangular_packages_platform_browser_dynamic_testing_testing_a":[{"provide":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockPipeResolver","line":17,"character":12},"deps":[{"__symbolic":"reference","module":"@angular/compiler","name":"CompileReflector","line":17,"character":37}]},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"PipeResolver","line":18,"character":12},"useExisting":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockPipeResolver","line":18,"character":39}},{"provide":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockDirectiveResolver","line":19,"character":12},"deps":[{"__symbolic":"reference","module":"@angular/compiler","name":"CompileReflector","line":19,"character":42}]},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"DirectiveResolver","line":20,"character":12},"useExisting":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockDirectiveResolver","line":20,"character":44}},{"provide":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockNgModuleResolver","line":21,"character":12},"deps":[{"__symbolic":"reference","module":"@angular/compiler","name":"CompileReflector","line":21,"character":41}]},{"provide":{"__symbolic":"reference","module":"@angular/compiler","name":"NgModuleResolver","line":22,"character":12},"useExisting":{"__symbolic":"reference","module":"@angular/compiler/testing","name":"MockNgModuleResolver","line":22,"character":43}}],"ɵangular_packages_platform_browser_dynamic_testing_testing_b":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":26,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"CompilerFactory","line":26,"character":69}]}],"createTestingCompiler":[{"__symbolic":"method"}]}}},"origins":{"platformBrowserDynamicTesting":"./src/testing","BrowserDynamicTestingModule":"./src/testing","ɵDOMTestComponentRenderer":"./src/dom_test_component_renderer","ɵplatformCoreDynamicTesting":"./src/platform_core_dynamic_testing","ɵangular_packages_platform_browser_dynamic_testing_testing_a":"./src/compiler_factory","ɵangular_packages_platform_browser_dynamic_testing_testing_b":"./src/compiler_factory"},"importAs":"@angular/platform-browser-dynamic/testing"}
|