@angular/core
Advanced tools
Comparing version 4.2.0-beta.0 to 4.2.0-beta.1
@@ -7,3 +7,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
/** | ||
* @license Angular v4.2.0-beta.0 | ||
* @license Angular v4.2.0-beta.1 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -468,2 +468,14 @@ * License: MIT | ||
}; | ||
/** | ||
* Allows to pass the compile summary from AOT compilation to the JIT compiler, | ||
* so that it can use the code generated by AOT. | ||
*/ | ||
TestingCompiler.prototype.loadAotSummaries = function (summaries) { throw unimplemented(); }; | ||
; | ||
/** | ||
* Gets the component factory for the given component. | ||
* This assumes that the component has been compiled before calling this call using | ||
* `compileModuleAndAllComponents*`. | ||
*/ | ||
TestingCompiler.prototype.getComponentFactory = function (component) { throw unimplemented(); }; | ||
return TestingCompiler; | ||
@@ -523,3 +535,3 @@ }(Compiler)); | ||
this._moduleRef = null; | ||
this._moduleWithComponentFactories = null; | ||
this._moduleFactory = null; | ||
this._compilerOptions = []; | ||
@@ -535,2 +547,3 @@ this._moduleOverrides = []; | ||
this._activeFixtures = []; | ||
this._aotSummaries = function () { return []; }; | ||
this.platform = null; | ||
@@ -552,5 +565,5 @@ this.ngModule = null; | ||
*/ | ||
TestBed.initTestEnvironment = function (ngModule, platform) { | ||
TestBed.initTestEnvironment = function (ngModule, platform, aotSummaries) { | ||
var testBed = getTestBed(); | ||
testBed.initTestEnvironment(ngModule, platform); | ||
testBed.initTestEnvironment(ngModule, platform, aotSummaries); | ||
return testBed; | ||
@@ -630,3 +643,3 @@ }; | ||
*/ | ||
TestBed.prototype.initTestEnvironment = function (ngModule, platform) { | ||
TestBed.prototype.initTestEnvironment = function (ngModule, platform, aotSummaries) { | ||
if (this.platform || this.ngModule) { | ||
@@ -637,2 +650,5 @@ throw new Error('Cannot set base providers because it has already been called'); | ||
this.ngModule = ngModule; | ||
if (aotSummaries) { | ||
this._aotSummaries = aotSummaries; | ||
} | ||
}; | ||
@@ -648,2 +664,3 @@ /** | ||
this.ngModule = null; | ||
this._aotSummaries = function () { return []; }; | ||
}; | ||
@@ -657,3 +674,3 @@ TestBed.prototype.resetTestingModule = function () { | ||
this._moduleRef = null; | ||
this._moduleWithComponentFactories = null; | ||
this._moduleFactory = null; | ||
this._compilerOptions = []; | ||
@@ -697,3 +714,3 @@ this._providers = []; | ||
var _this = this; | ||
if (this._moduleWithComponentFactories || this._instantiated) { | ||
if (this._moduleFactory || this._instantiated) { | ||
return Promise.resolve(null); | ||
@@ -704,3 +721,3 @@ } | ||
.then(function (moduleAndComponentFactories) { | ||
_this._moduleWithComponentFactories = moduleAndComponentFactories; | ||
_this._moduleFactory = moduleAndComponentFactories.ngModuleFactory; | ||
}); | ||
@@ -712,7 +729,7 @@ }; | ||
} | ||
if (!this._moduleWithComponentFactories) { | ||
if (!this._moduleFactory) { | ||
try { | ||
var moduleType = this._createCompilerAndModule(); | ||
this._moduleWithComponentFactories = | ||
this._compiler.compileModuleAndAllComponentsSync(moduleType); | ||
this._moduleFactory = | ||
this._compiler.compileModuleAndAllComponentsSync(moduleType).ngModuleFactory; | ||
} | ||
@@ -731,3 +748,3 @@ catch (e) { | ||
var ngZoneInjector = ReflectiveInjector.resolveAndCreate([{ provide: NgZone, useValue: ngZone }], this.platform.injector); | ||
this._moduleRef = this._moduleWithComponentFactories.ngModuleFactory.create(ngZoneInjector); | ||
this._moduleRef = this._moduleFactory.create(ngZoneInjector); | ||
this._instantiated = true; | ||
@@ -754,2 +771,3 @@ }; | ||
compilerFactory.createTestingCompiler(this._compilerOptions.concat([{ useDebug: true }])); | ||
this._compiler.loadAotSummaries(this._aotSummaries); | ||
this._moduleOverrides.forEach(function (entry) { return _this._compiler.overrideModule(entry[0], entry[1]); }); | ||
@@ -803,3 +821,3 @@ this._componentOverrides.forEach(function (entry) { return _this._compiler.overrideComponent(entry[0], entry[1]); }); | ||
this._initIfNeeded(); | ||
var componentFactory = this._moduleWithComponentFactories.componentFactories.find(function (compFactory) { return compFactory.componentType === component; }); | ||
var componentFactory = this._compiler.getComponentFactory(component); | ||
if (!componentFactory) { | ||
@@ -806,0 +824,0 @@ throw new Error("Cannot create the component " + ɵstringify(component) + " as it was not imported into the testing module!"); |
/** | ||
* @license Angular v4.2.0-beta.0 | ||
* @license Angular v4.2.0-beta.1 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -441,2 +441,14 @@ * License: MIT | ||
} | ||
/** | ||
* Allows to pass the compile summary from AOT compilation to the JIT compiler, | ||
* so that it can use the code generated by AOT. | ||
*/ | ||
loadAotSummaries(summaries) { throw unimplemented(); } | ||
; | ||
/** | ||
* Gets the component factory for the given component. | ||
* This assumes that the component has been compiled before calling this call using | ||
* `compileModuleAndAllComponents*`. | ||
*/ | ||
getComponentFactory(component) { throw unimplemented(); } | ||
} | ||
@@ -490,3 +502,3 @@ /** | ||
this._moduleRef = null; | ||
this._moduleWithComponentFactories = null; | ||
this._moduleFactory = null; | ||
this._compilerOptions = []; | ||
@@ -502,2 +514,3 @@ this._moduleOverrides = []; | ||
this._activeFixtures = []; | ||
this._aotSummaries = () => []; | ||
this.platform = null; | ||
@@ -519,5 +532,5 @@ this.ngModule = null; | ||
*/ | ||
static initTestEnvironment(ngModule, platform) { | ||
static initTestEnvironment(ngModule, platform, aotSummaries) { | ||
const testBed = getTestBed(); | ||
testBed.initTestEnvironment(ngModule, platform); | ||
testBed.initTestEnvironment(ngModule, platform, aotSummaries); | ||
return testBed; | ||
@@ -596,3 +609,3 @@ } | ||
*/ | ||
initTestEnvironment(ngModule, platform) { | ||
initTestEnvironment(ngModule, platform, aotSummaries) { | ||
if (this.platform || this.ngModule) { | ||
@@ -603,2 +616,5 @@ throw new Error('Cannot set base providers because it has already been called'); | ||
this.ngModule = ngModule; | ||
if (aotSummaries) { | ||
this._aotSummaries = aotSummaries; | ||
} | ||
} | ||
@@ -614,2 +630,3 @@ /** | ||
this.ngModule = null; | ||
this._aotSummaries = () => []; | ||
} | ||
@@ -623,3 +640,3 @@ resetTestingModule() { | ||
this._moduleRef = null; | ||
this._moduleWithComponentFactories = null; | ||
this._moduleFactory = null; | ||
this._compilerOptions = []; | ||
@@ -661,3 +678,3 @@ this._providers = []; | ||
compileComponents() { | ||
if (this._moduleWithComponentFactories || this._instantiated) { | ||
if (this._moduleFactory || this._instantiated) { | ||
return Promise.resolve(null); | ||
@@ -668,3 +685,3 @@ } | ||
.then((moduleAndComponentFactories) => { | ||
this._moduleWithComponentFactories = moduleAndComponentFactories; | ||
this._moduleFactory = moduleAndComponentFactories.ngModuleFactory; | ||
}); | ||
@@ -676,7 +693,7 @@ } | ||
} | ||
if (!this._moduleWithComponentFactories) { | ||
if (!this._moduleFactory) { | ||
try { | ||
const moduleType = this._createCompilerAndModule(); | ||
this._moduleWithComponentFactories = | ||
this._compiler.compileModuleAndAllComponentsSync(moduleType); | ||
this._moduleFactory = | ||
this._compiler.compileModuleAndAllComponentsSync(moduleType).ngModuleFactory; | ||
} | ||
@@ -695,3 +712,3 @@ catch (e) { | ||
const ngZoneInjector = ReflectiveInjector.resolveAndCreate([{ provide: NgZone, useValue: ngZone }], this.platform.injector); | ||
this._moduleRef = this._moduleWithComponentFactories.ngModuleFactory.create(ngZoneInjector); | ||
this._moduleRef = this._moduleFactory.create(ngZoneInjector); | ||
this._instantiated = true; | ||
@@ -714,2 +731,3 @@ } | ||
compilerFactory.createTestingCompiler(this._compilerOptions.concat([{ useDebug: true }])); | ||
this._compiler.loadAotSummaries(this._aotSummaries); | ||
this._moduleOverrides.forEach((entry) => this._compiler.overrideModule(entry[0], entry[1])); | ||
@@ -760,3 +778,3 @@ this._componentOverrides.forEach((entry) => this._compiler.overrideComponent(entry[0], entry[1])); | ||
this._initIfNeeded(); | ||
const componentFactory = this._moduleWithComponentFactories.componentFactories.find((compFactory) => compFactory.componentType === component); | ||
const componentFactory = this._compiler.getComponentFactory(component); | ||
if (!componentFactory) { | ||
@@ -763,0 +781,0 @@ throw new Error(`Cannot create the component ${ɵstringify(component)} as it was not imported into the testing module!`); |
/** | ||
* @license Angular v4.2.0-beta.0 | ||
* @license Angular v4.2.0-beta.1 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -18,3 +18,3 @@ * License: MIT | ||
/** | ||
* @license Angular v4.2.0-beta.0 | ||
* @license Angular v4.2.0-beta.1 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -478,2 +478,14 @@ * License: MIT | ||
}; | ||
/** | ||
* Allows to pass the compile summary from AOT compilation to the JIT compiler, | ||
* so that it can use the code generated by AOT. | ||
*/ | ||
TestingCompiler.prototype.loadAotSummaries = function (summaries) { throw unimplemented(); }; | ||
/** | ||
* Gets the component factory for the given component. | ||
* This assumes that the component has been compiled before calling this call using | ||
* `compileModuleAndAllComponents*`. | ||
*/ | ||
TestingCompiler.prototype.getComponentFactory = function (component) { throw unimplemented(); }; | ||
return TestingCompiler; | ||
@@ -533,3 +545,3 @@ }(_angular_core.Compiler)); | ||
this._moduleRef = null; | ||
this._moduleWithComponentFactories = null; | ||
this._moduleFactory = null; | ||
this._compilerOptions = []; | ||
@@ -545,2 +557,3 @@ this._moduleOverrides = []; | ||
this._activeFixtures = []; | ||
this._aotSummaries = function () { return []; }; | ||
this.platform = null; | ||
@@ -562,5 +575,5 @@ this.ngModule = null; | ||
*/ | ||
TestBed.initTestEnvironment = function (ngModule, platform) { | ||
TestBed.initTestEnvironment = function (ngModule, platform, aotSummaries) { | ||
var testBed = getTestBed(); | ||
testBed.initTestEnvironment(ngModule, platform); | ||
testBed.initTestEnvironment(ngModule, platform, aotSummaries); | ||
return testBed; | ||
@@ -640,3 +653,3 @@ }; | ||
*/ | ||
TestBed.prototype.initTestEnvironment = function (ngModule, platform) { | ||
TestBed.prototype.initTestEnvironment = function (ngModule, platform, aotSummaries) { | ||
if (this.platform || this.ngModule) { | ||
@@ -647,2 +660,5 @@ throw new Error('Cannot set base providers because it has already been called'); | ||
this.ngModule = ngModule; | ||
if (aotSummaries) { | ||
this._aotSummaries = aotSummaries; | ||
} | ||
}; | ||
@@ -658,2 +674,3 @@ /** | ||
this.ngModule = null; | ||
this._aotSummaries = function () { return []; }; | ||
}; | ||
@@ -667,3 +684,3 @@ TestBed.prototype.resetTestingModule = function () { | ||
this._moduleRef = null; | ||
this._moduleWithComponentFactories = null; | ||
this._moduleFactory = null; | ||
this._compilerOptions = []; | ||
@@ -707,3 +724,3 @@ this._providers = []; | ||
var _this = this; | ||
if (this._moduleWithComponentFactories || this._instantiated) { | ||
if (this._moduleFactory || this._instantiated) { | ||
return Promise.resolve(null); | ||
@@ -714,3 +731,3 @@ } | ||
.then(function (moduleAndComponentFactories) { | ||
_this._moduleWithComponentFactories = moduleAndComponentFactories; | ||
_this._moduleFactory = moduleAndComponentFactories.ngModuleFactory; | ||
}); | ||
@@ -722,7 +739,7 @@ }; | ||
} | ||
if (!this._moduleWithComponentFactories) { | ||
if (!this._moduleFactory) { | ||
try { | ||
var moduleType = this._createCompilerAndModule(); | ||
this._moduleWithComponentFactories = | ||
this._compiler.compileModuleAndAllComponentsSync(moduleType); | ||
this._moduleFactory = | ||
this._compiler.compileModuleAndAllComponentsSync(moduleType).ngModuleFactory; | ||
} | ||
@@ -741,3 +758,3 @@ catch (e) { | ||
var ngZoneInjector = _angular_core.ReflectiveInjector.resolveAndCreate([{ provide: _angular_core.NgZone, useValue: ngZone }], this.platform.injector); | ||
this._moduleRef = this._moduleWithComponentFactories.ngModuleFactory.create(ngZoneInjector); | ||
this._moduleRef = this._moduleFactory.create(ngZoneInjector); | ||
this._instantiated = true; | ||
@@ -764,2 +781,3 @@ }; | ||
compilerFactory.createTestingCompiler(this._compilerOptions.concat([{ useDebug: true }])); | ||
this._compiler.loadAotSummaries(this._aotSummaries); | ||
this._moduleOverrides.forEach(function (entry) { return _this._compiler.overrideModule(entry[0], entry[1]); }); | ||
@@ -813,3 +831,3 @@ this._componentOverrides.forEach(function (entry) { return _this._compiler.overrideComponent(entry[0], entry[1]); }); | ||
this._initIfNeeded(); | ||
var componentFactory = this._moduleWithComponentFactories.componentFactories.find(function (compFactory) { return compFactory.componentType === component; }); | ||
var componentFactory = this._compiler.getComponentFactory(component); | ||
if (!componentFactory) { | ||
@@ -816,0 +834,0 @@ throw new Error("Cannot create the component " + _angular_core.ɵstringify(component) + " as it was not imported into the testing module!"); |
/** | ||
* @license Angular v4.2.0-beta.0 | ||
* @license Angular v4.2.0-beta.1 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -13,3 +13,3 @@ * License: MIT | ||
*/ | ||
function unimplemented(){throw Error("unimplemented")}function getTestBed(){return _testBed=_testBed||new TestBed}function inject(tokens,fn){var testBed=getTestBed();return tokens.indexOf(AsyncTestCompleter)>=0?function(){var _this=this;return testBed.compileComponents().then(function(){var completer=testBed.get(AsyncTestCompleter);return testBed.execute(tokens,fn,_this),completer.promise})}:function(){return testBed.execute(tokens,fn,this)}}function withModule(moduleDef,fn){return fn?function(){var testBed=getTestBed();return moduleDef&&testBed.configureTestingModule(moduleDef),fn.apply(this)}:new InjectSetupWrapper(function(){return moduleDef})}function getComponentType(error){return error[_angular_core.ɵERROR_COMPONENT_TYPE]}var __extends=function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},_global="undefined"==typeof window?global:window,ComponentFixture=function(){function ComponentFixture(componentRef,ngZone,_autoDetect){var _this=this;this.componentRef=componentRef,this.ngZone=ngZone,this._autoDetect=_autoDetect,this._isStable=!0,this._isDestroyed=!1,this._resolve=null,this._promise=null,this._onUnstableSubscription=null,this._onStableSubscription=null,this._onMicrotaskEmptySubscription=null,this._onErrorSubscription=null,this.changeDetectorRef=componentRef.changeDetectorRef,this.elementRef=componentRef.location,this.debugElement=_angular_core.getDebugNode(this.elementRef.nativeElement),this.componentInstance=componentRef.instance,this.nativeElement=this.elementRef.nativeElement,this.componentRef=componentRef,this.ngZone=ngZone,ngZone&&(this._onUnstableSubscription=ngZone.onUnstable.subscribe({next:function(){_this._isStable=!1}}),this._onMicrotaskEmptySubscription=ngZone.onMicrotaskEmpty.subscribe({next:function(){_this._autoDetect&&_this.detectChanges(!0)}}),this._onStableSubscription=ngZone.onStable.subscribe({next:function(){_this._isStable=!0,null!==_this._promise&&scheduleMicroTask(function(){ngZone.hasPendingMacrotasks||null!==_this._promise&&(_this._resolve(!0),_this._resolve=null,_this._promise=null)})}}),this._onErrorSubscription=ngZone.onError.subscribe({next:function(error){throw error}}))}return ComponentFixture.prototype._tick=function(checkNoChanges){this.changeDetectorRef.detectChanges(),checkNoChanges&&this.checkNoChanges()},ComponentFixture.prototype.detectChanges=function(checkNoChanges){var _this=this;void 0===checkNoChanges&&(checkNoChanges=!0),null!=this.ngZone?this.ngZone.run(function(){_this._tick(checkNoChanges)}):this._tick(checkNoChanges)},ComponentFixture.prototype.checkNoChanges=function(){this.changeDetectorRef.checkNoChanges()},ComponentFixture.prototype.autoDetectChanges=function(autoDetect){if(void 0===autoDetect&&(autoDetect=!0),null==this.ngZone)throw new Error("Cannot call autoDetectChanges when ComponentFixtureNoNgZone is set");this._autoDetect=autoDetect,this.detectChanges()},ComponentFixture.prototype.isStable=function(){return this._isStable&&!this.ngZone.hasPendingMacrotasks},ComponentFixture.prototype.whenStable=function(){var _this=this;return this.isStable()?Promise.resolve(!1):null!==this._promise?this._promise:(this._promise=new Promise(function(res){_this._resolve=res}),this._promise)},ComponentFixture.prototype.destroy=function(){this._isDestroyed||(this.componentRef.destroy(),null!=this._onUnstableSubscription&&(this._onUnstableSubscription.unsubscribe(),this._onUnstableSubscription=null),null!=this._onStableSubscription&&(this._onStableSubscription.unsubscribe(),this._onStableSubscription=null),null!=this._onMicrotaskEmptySubscription&&(this._onMicrotaskEmptySubscription.unsubscribe(),this._onMicrotaskEmptySubscription=null),null!=this._onErrorSubscription&&(this._onErrorSubscription.unsubscribe(),this._onErrorSubscription=null),this._isDestroyed=!0)},ComponentFixture}(),FakeAsyncTestZoneSpec=Zone.FakeAsyncTestZoneSpec,ProxyZoneSpec=Zone.ProxyZoneSpec,_fakeAsyncTestZoneSpec=null,_inFakeAsyncCall=!1,AsyncTestCompleter=function(){function AsyncTestCompleter(){var _this=this;this._promise=new Promise(function(res,rej){_this._resolve=res,_this._reject=rej})}return AsyncTestCompleter.prototype.done=function(value){this._resolve(value)},AsyncTestCompleter.prototype.fail=function(error,stackTrace){this._reject(error)},Object.defineProperty(AsyncTestCompleter.prototype,"promise",{get:function(){return this._promise},enumerable:!0,configurable:!0}),AsyncTestCompleter}(),TestingCompiler=function(_super){function TestingCompiler(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(TestingCompiler,_super),Object.defineProperty(TestingCompiler.prototype,"injector",{get:function(){throw unimplemented()},enumerable:!0,configurable:!0}),TestingCompiler.prototype.overrideModule=function(module,overrides){throw unimplemented()},TestingCompiler.prototype.overrideDirective=function(directive,overrides){throw unimplemented()},TestingCompiler.prototype.overrideComponent=function(component,overrides){throw unimplemented()},TestingCompiler.prototype.overridePipe=function(directive,overrides){throw unimplemented()},TestingCompiler}(_angular_core.Compiler),TestingCompilerFactory=function(){function TestingCompilerFactory(){}return TestingCompilerFactory}(),UNDEFINED=new Object,TestComponentRenderer=function(){function TestComponentRenderer(){}return TestComponentRenderer.prototype.insertRootElement=function(rootElementId){},TestComponentRenderer}(),_nextRootElementId=0,ComponentFixtureAutoDetect=new _angular_core.InjectionToken("ComponentFixtureAutoDetect"),ComponentFixtureNoNgZone=new _angular_core.InjectionToken("ComponentFixtureNoNgZone"),TestBed=function(){function TestBed(){this._instantiated=!1,this._compiler=null,this._moduleRef=null,this._moduleWithComponentFactories=null,this._compilerOptions=[],this._moduleOverrides=[],this._componentOverrides=[],this._directiveOverrides=[],this._pipeOverrides=[],this._providers=[],this._declarations=[],this._imports=[],this._schemas=[],this._activeFixtures=[],this.platform=null,this.ngModule=null}return TestBed.initTestEnvironment=function(ngModule,platform){var testBed=getTestBed();return testBed.initTestEnvironment(ngModule,platform),testBed},TestBed.resetTestEnvironment=function(){getTestBed().resetTestEnvironment()},TestBed.resetTestingModule=function(){return getTestBed().resetTestingModule(),TestBed},TestBed.configureCompiler=function(config){return getTestBed().configureCompiler(config),TestBed},TestBed.configureTestingModule=function(moduleDef){return getTestBed().configureTestingModule(moduleDef),TestBed},TestBed.compileComponents=function(){return getTestBed().compileComponents()},TestBed.overrideModule=function(ngModule,override){return getTestBed().overrideModule(ngModule,override),TestBed},TestBed.overrideComponent=function(component,override){return getTestBed().overrideComponent(component,override),TestBed},TestBed.overrideDirective=function(directive,override){return getTestBed().overrideDirective(directive,override),TestBed},TestBed.overridePipe=function(pipe,override){return getTestBed().overridePipe(pipe,override),TestBed},TestBed.overrideTemplate=function(component,template){return getTestBed().overrideComponent(component,{set:{template:template,templateUrl:null}}),TestBed},TestBed.get=function(token,notFoundValue){return void 0===notFoundValue&&(notFoundValue=_angular_core.Injector.THROW_IF_NOT_FOUND),getTestBed().get(token,notFoundValue)},TestBed.createComponent=function(component){return getTestBed().createComponent(component)},TestBed.prototype.initTestEnvironment=function(ngModule,platform){if(this.platform||this.ngModule)throw new Error("Cannot set base providers because it has already been called");this.platform=platform,this.ngModule=ngModule},TestBed.prototype.resetTestEnvironment=function(){this.resetTestingModule(),this.platform=null,this.ngModule=null},TestBed.prototype.resetTestingModule=function(){this._compiler=null,this._moduleOverrides=[],this._componentOverrides=[],this._directiveOverrides=[],this._pipeOverrides=[],this._moduleRef=null,this._moduleWithComponentFactories=null,this._compilerOptions=[],this._providers=[],this._declarations=[],this._imports=[],this._schemas=[],this._instantiated=!1,this._activeFixtures.forEach(function(fixture){try{fixture.destroy()}catch(e){console.error("Error during cleanup of component",fixture.componentInstance)}}),this._activeFixtures=[]},TestBed.prototype.configureCompiler=function(config){this._assertNotInstantiated("TestBed.configureCompiler","configure the compiler"),this._compilerOptions.push(config)},TestBed.prototype.configureTestingModule=function(moduleDef){this._assertNotInstantiated("TestBed.configureTestingModule","configure the test module"),moduleDef.providers&&(_a=this._providers).push.apply(_a,moduleDef.providers),moduleDef.declarations&&(_b=this._declarations).push.apply(_b,moduleDef.declarations),moduleDef.imports&&(_c=this._imports).push.apply(_c,moduleDef.imports),moduleDef.schemas&&(_d=this._schemas).push.apply(_d,moduleDef.schemas);var _a,_b,_c,_d},TestBed.prototype.compileComponents=function(){var _this=this;if(this._moduleWithComponentFactories||this._instantiated)return Promise.resolve(null);var moduleType=this._createCompilerAndModule();return this._compiler.compileModuleAndAllComponentsAsync(moduleType).then(function(moduleAndComponentFactories){_this._moduleWithComponentFactories=moduleAndComponentFactories})},TestBed.prototype._initIfNeeded=function(){if(!this._instantiated){if(!this._moduleWithComponentFactories)try{var moduleType=this._createCompilerAndModule();this._moduleWithComponentFactories=this._compiler.compileModuleAndAllComponentsSync(moduleType)}catch(e){throw getComponentType(e)?new Error("This test module uses the component "+_angular_core.ɵstringify(getComponentType(e))+' which is using a "templateUrl" or "styleUrls", but they were never compiled. Please call "TestBed.compileComponents" before your test.'):e}var ngZone=new _angular_core.NgZone({enableLongStackTrace:!0}),ngZoneInjector=_angular_core.ReflectiveInjector.resolveAndCreate([{provide:_angular_core.NgZone,useValue:ngZone}],this.platform.injector);this._moduleRef=this._moduleWithComponentFactories.ngModuleFactory.create(ngZoneInjector),this._instantiated=!0}},TestBed.prototype._createCompilerAndModule=function(){var _this=this,providers=this._providers.concat([{provide:TestBed,useValue:this}]),declarations=this._declarations,imports=[this.ngModule,this._imports],schemas=this._schemas,DynamicTestModule=function(){function DynamicTestModule(){}return DynamicTestModule}();DynamicTestModule.decorators=[{type:_angular_core.NgModule,args:[{providers:providers,declarations:declarations,imports:imports,schemas:schemas}]}],DynamicTestModule.ctorParameters=function(){return[]};var compilerFactory=this.platform.injector.get(TestingCompilerFactory);return this._compiler=compilerFactory.createTestingCompiler(this._compilerOptions.concat([{useDebug:!0}])),this._moduleOverrides.forEach(function(entry){return _this._compiler.overrideModule(entry[0],entry[1])}),this._componentOverrides.forEach(function(entry){return _this._compiler.overrideComponent(entry[0],entry[1])}),this._directiveOverrides.forEach(function(entry){return _this._compiler.overrideDirective(entry[0],entry[1])}),this._pipeOverrides.forEach(function(entry){return _this._compiler.overridePipe(entry[0],entry[1])}),DynamicTestModule},TestBed.prototype._assertNotInstantiated=function(methodName,methodDescription){if(this._instantiated)throw new Error("Cannot "+methodDescription+" when the test module has already been instantiated. "+("Make sure you are not using `inject` before `"+methodName+"`."))},TestBed.prototype.get=function(token,notFoundValue){if(void 0===notFoundValue&&(notFoundValue=_angular_core.Injector.THROW_IF_NOT_FOUND),this._initIfNeeded(),token===TestBed)return this;var result=this._moduleRef.injector.get(token,UNDEFINED);return result===UNDEFINED?this._compiler.injector.get(token,notFoundValue):result},TestBed.prototype.execute=function(tokens,fn,context){var _this=this;this._initIfNeeded();var params=tokens.map(function(t){return _this.get(t)});return fn.apply(context,params)},TestBed.prototype.overrideModule=function(ngModule,override){this._assertNotInstantiated("overrideModule","override module metadata"),this._moduleOverrides.push([ngModule,override])},TestBed.prototype.overrideComponent=function(component,override){this._assertNotInstantiated("overrideComponent","override component metadata"),this._componentOverrides.push([component,override])},TestBed.prototype.overrideDirective=function(directive,override){this._assertNotInstantiated("overrideDirective","override directive metadata"),this._directiveOverrides.push([directive,override])},TestBed.prototype.overridePipe=function(pipe,override){this._assertNotInstantiated("overridePipe","override pipe metadata"),this._pipeOverrides.push([pipe,override])},TestBed.prototype.createComponent=function(component){var _this=this;this._initIfNeeded();var componentFactory=this._moduleWithComponentFactories.componentFactories.find(function(compFactory){return compFactory.componentType===component});if(!componentFactory)throw new Error("Cannot create the component "+_angular_core.ɵstringify(component)+" as it was not imported into the testing module!");var noNgZone=this.get(ComponentFixtureNoNgZone,!1),autoDetect=this.get(ComponentFixtureAutoDetect,!1),ngZone=noNgZone?null:this.get(_angular_core.NgZone,null),testComponentRenderer=this.get(TestComponentRenderer),rootElId="root"+_nextRootElementId++;testComponentRenderer.insertRootElement(rootElId);var initComponent=function(){var componentRef=componentFactory.create(_angular_core.Injector.NULL,[],"#"+rootElId,_this._moduleRef);return new ComponentFixture(componentRef,ngZone,autoDetect)},fixture=ngZone?ngZone.run(initComponent):initComponent();return this._activeFixtures.push(fixture),fixture},TestBed}(),_testBed=null,InjectSetupWrapper=function(){function InjectSetupWrapper(_moduleDef){this._moduleDef=_moduleDef}return InjectSetupWrapper.prototype._addModule=function(){var moduleDef=this._moduleDef();moduleDef&&getTestBed().configureTestingModule(moduleDef)},InjectSetupWrapper.prototype.inject=function(tokens,fn){var self=this;return function(){return self._addModule(),inject(tokens,fn).call(this)}},InjectSetupWrapper}(),_global$1="undefined"==typeof window?global:window;_global$1.beforeEach&&_global$1.beforeEach(function(){TestBed.resetTestingModule(),resetFakeAsyncZone()});var __core_private_testing_placeholder__="";exports.async=async,exports.ComponentFixture=ComponentFixture,exports.resetFakeAsyncZone=resetFakeAsyncZone,exports.fakeAsync=fakeAsync,exports.tick=tick,exports.discardPeriodicTasks=discardPeriodicTasks,exports.flushMicrotasks=flushMicrotasks,exports.TestComponentRenderer=TestComponentRenderer,exports.ComponentFixtureAutoDetect=ComponentFixtureAutoDetect,exports.ComponentFixtureNoNgZone=ComponentFixtureNoNgZone,exports.TestBed=TestBed,exports.getTestBed=getTestBed,exports.inject=inject,exports.InjectSetupWrapper=InjectSetupWrapper,exports.withModule=withModule,exports.__core_private_testing_placeholder__=__core_private_testing_placeholder__,exports.ɵTestingCompiler=TestingCompiler,exports.ɵTestingCompilerFactory=TestingCompilerFactory,Object.defineProperty(exports,"__esModule",{value:!0})}); | ||
function unimplemented(){throw Error("unimplemented")}function getTestBed(){return _testBed=_testBed||new TestBed}function inject(tokens,fn){var testBed=getTestBed();return tokens.indexOf(AsyncTestCompleter)>=0?function(){var _this=this;return testBed.compileComponents().then(function(){var completer=testBed.get(AsyncTestCompleter);return testBed.execute(tokens,fn,_this),completer.promise})}:function(){return testBed.execute(tokens,fn,this)}}function withModule(moduleDef,fn){return fn?function(){var testBed=getTestBed();return moduleDef&&testBed.configureTestingModule(moduleDef),fn.apply(this)}:new InjectSetupWrapper(function(){return moduleDef})}function getComponentType(error){return error[_angular_core.ɵERROR_COMPONENT_TYPE]}var __extends=function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},_global="undefined"==typeof window?global:window,ComponentFixture=function(){function ComponentFixture(componentRef,ngZone,_autoDetect){var _this=this;this.componentRef=componentRef,this.ngZone=ngZone,this._autoDetect=_autoDetect,this._isStable=!0,this._isDestroyed=!1,this._resolve=null,this._promise=null,this._onUnstableSubscription=null,this._onStableSubscription=null,this._onMicrotaskEmptySubscription=null,this._onErrorSubscription=null,this.changeDetectorRef=componentRef.changeDetectorRef,this.elementRef=componentRef.location,this.debugElement=_angular_core.getDebugNode(this.elementRef.nativeElement),this.componentInstance=componentRef.instance,this.nativeElement=this.elementRef.nativeElement,this.componentRef=componentRef,this.ngZone=ngZone,ngZone&&(this._onUnstableSubscription=ngZone.onUnstable.subscribe({next:function(){_this._isStable=!1}}),this._onMicrotaskEmptySubscription=ngZone.onMicrotaskEmpty.subscribe({next:function(){_this._autoDetect&&_this.detectChanges(!0)}}),this._onStableSubscription=ngZone.onStable.subscribe({next:function(){_this._isStable=!0,null!==_this._promise&&scheduleMicroTask(function(){ngZone.hasPendingMacrotasks||null!==_this._promise&&(_this._resolve(!0),_this._resolve=null,_this._promise=null)})}}),this._onErrorSubscription=ngZone.onError.subscribe({next:function(error){throw error}}))}return ComponentFixture.prototype._tick=function(checkNoChanges){this.changeDetectorRef.detectChanges(),checkNoChanges&&this.checkNoChanges()},ComponentFixture.prototype.detectChanges=function(checkNoChanges){var _this=this;void 0===checkNoChanges&&(checkNoChanges=!0),null!=this.ngZone?this.ngZone.run(function(){_this._tick(checkNoChanges)}):this._tick(checkNoChanges)},ComponentFixture.prototype.checkNoChanges=function(){this.changeDetectorRef.checkNoChanges()},ComponentFixture.prototype.autoDetectChanges=function(autoDetect){if(void 0===autoDetect&&(autoDetect=!0),null==this.ngZone)throw new Error("Cannot call autoDetectChanges when ComponentFixtureNoNgZone is set");this._autoDetect=autoDetect,this.detectChanges()},ComponentFixture.prototype.isStable=function(){return this._isStable&&!this.ngZone.hasPendingMacrotasks},ComponentFixture.prototype.whenStable=function(){var _this=this;return this.isStable()?Promise.resolve(!1):null!==this._promise?this._promise:(this._promise=new Promise(function(res){_this._resolve=res}),this._promise)},ComponentFixture.prototype.destroy=function(){this._isDestroyed||(this.componentRef.destroy(),null!=this._onUnstableSubscription&&(this._onUnstableSubscription.unsubscribe(),this._onUnstableSubscription=null),null!=this._onStableSubscription&&(this._onStableSubscription.unsubscribe(),this._onStableSubscription=null),null!=this._onMicrotaskEmptySubscription&&(this._onMicrotaskEmptySubscription.unsubscribe(),this._onMicrotaskEmptySubscription=null),null!=this._onErrorSubscription&&(this._onErrorSubscription.unsubscribe(),this._onErrorSubscription=null),this._isDestroyed=!0)},ComponentFixture}(),FakeAsyncTestZoneSpec=Zone.FakeAsyncTestZoneSpec,ProxyZoneSpec=Zone.ProxyZoneSpec,_fakeAsyncTestZoneSpec=null,_inFakeAsyncCall=!1,AsyncTestCompleter=function(){function AsyncTestCompleter(){var _this=this;this._promise=new Promise(function(res,rej){_this._resolve=res,_this._reject=rej})}return AsyncTestCompleter.prototype.done=function(value){this._resolve(value)},AsyncTestCompleter.prototype.fail=function(error,stackTrace){this._reject(error)},Object.defineProperty(AsyncTestCompleter.prototype,"promise",{get:function(){return this._promise},enumerable:!0,configurable:!0}),AsyncTestCompleter}(),TestingCompiler=function(_super){function TestingCompiler(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(TestingCompiler,_super),Object.defineProperty(TestingCompiler.prototype,"injector",{get:function(){throw unimplemented()},enumerable:!0,configurable:!0}),TestingCompiler.prototype.overrideModule=function(module,overrides){throw unimplemented()},TestingCompiler.prototype.overrideDirective=function(directive,overrides){throw unimplemented()},TestingCompiler.prototype.overrideComponent=function(component,overrides){throw unimplemented()},TestingCompiler.prototype.overridePipe=function(directive,overrides){throw unimplemented()},TestingCompiler.prototype.loadAotSummaries=function(summaries){throw unimplemented()},TestingCompiler.prototype.getComponentFactory=function(component){throw unimplemented()},TestingCompiler}(_angular_core.Compiler),TestingCompilerFactory=function(){function TestingCompilerFactory(){}return TestingCompilerFactory}(),UNDEFINED=new Object,TestComponentRenderer=function(){function TestComponentRenderer(){}return TestComponentRenderer.prototype.insertRootElement=function(rootElementId){},TestComponentRenderer}(),_nextRootElementId=0,ComponentFixtureAutoDetect=new _angular_core.InjectionToken("ComponentFixtureAutoDetect"),ComponentFixtureNoNgZone=new _angular_core.InjectionToken("ComponentFixtureNoNgZone"),TestBed=function(){function TestBed(){this._instantiated=!1,this._compiler=null,this._moduleRef=null,this._moduleFactory=null,this._compilerOptions=[],this._moduleOverrides=[],this._componentOverrides=[],this._directiveOverrides=[],this._pipeOverrides=[],this._providers=[],this._declarations=[],this._imports=[],this._schemas=[],this._activeFixtures=[],this._aotSummaries=function(){return[]},this.platform=null,this.ngModule=null}return TestBed.initTestEnvironment=function(ngModule,platform,aotSummaries){var testBed=getTestBed();return testBed.initTestEnvironment(ngModule,platform,aotSummaries),testBed},TestBed.resetTestEnvironment=function(){getTestBed().resetTestEnvironment()},TestBed.resetTestingModule=function(){return getTestBed().resetTestingModule(),TestBed},TestBed.configureCompiler=function(config){return getTestBed().configureCompiler(config),TestBed},TestBed.configureTestingModule=function(moduleDef){return getTestBed().configureTestingModule(moduleDef),TestBed},TestBed.compileComponents=function(){return getTestBed().compileComponents()},TestBed.overrideModule=function(ngModule,override){return getTestBed().overrideModule(ngModule,override),TestBed},TestBed.overrideComponent=function(component,override){return getTestBed().overrideComponent(component,override),TestBed},TestBed.overrideDirective=function(directive,override){return getTestBed().overrideDirective(directive,override),TestBed},TestBed.overridePipe=function(pipe,override){return getTestBed().overridePipe(pipe,override),TestBed},TestBed.overrideTemplate=function(component,template){return getTestBed().overrideComponent(component,{set:{template:template,templateUrl:null}}),TestBed},TestBed.get=function(token,notFoundValue){return void 0===notFoundValue&&(notFoundValue=_angular_core.Injector.THROW_IF_NOT_FOUND),getTestBed().get(token,notFoundValue)},TestBed.createComponent=function(component){return getTestBed().createComponent(component)},TestBed.prototype.initTestEnvironment=function(ngModule,platform,aotSummaries){if(this.platform||this.ngModule)throw new Error("Cannot set base providers because it has already been called");this.platform=platform,this.ngModule=ngModule,aotSummaries&&(this._aotSummaries=aotSummaries)},TestBed.prototype.resetTestEnvironment=function(){this.resetTestingModule(),this.platform=null,this.ngModule=null,this._aotSummaries=function(){return[]}},TestBed.prototype.resetTestingModule=function(){this._compiler=null,this._moduleOverrides=[],this._componentOverrides=[],this._directiveOverrides=[],this._pipeOverrides=[],this._moduleRef=null,this._moduleFactory=null,this._compilerOptions=[],this._providers=[],this._declarations=[],this._imports=[],this._schemas=[],this._instantiated=!1,this._activeFixtures.forEach(function(fixture){try{fixture.destroy()}catch(e){console.error("Error during cleanup of component",fixture.componentInstance)}}),this._activeFixtures=[]},TestBed.prototype.configureCompiler=function(config){this._assertNotInstantiated("TestBed.configureCompiler","configure the compiler"),this._compilerOptions.push(config)},TestBed.prototype.configureTestingModule=function(moduleDef){this._assertNotInstantiated("TestBed.configureTestingModule","configure the test module"),moduleDef.providers&&(_a=this._providers).push.apply(_a,moduleDef.providers),moduleDef.declarations&&(_b=this._declarations).push.apply(_b,moduleDef.declarations),moduleDef.imports&&(_c=this._imports).push.apply(_c,moduleDef.imports),moduleDef.schemas&&(_d=this._schemas).push.apply(_d,moduleDef.schemas);var _a,_b,_c,_d},TestBed.prototype.compileComponents=function(){var _this=this;if(this._moduleFactory||this._instantiated)return Promise.resolve(null);var moduleType=this._createCompilerAndModule();return this._compiler.compileModuleAndAllComponentsAsync(moduleType).then(function(moduleAndComponentFactories){_this._moduleFactory=moduleAndComponentFactories.ngModuleFactory})},TestBed.prototype._initIfNeeded=function(){if(!this._instantiated){if(!this._moduleFactory)try{var moduleType=this._createCompilerAndModule();this._moduleFactory=this._compiler.compileModuleAndAllComponentsSync(moduleType).ngModuleFactory}catch(e){throw getComponentType(e)?new Error("This test module uses the component "+_angular_core.ɵstringify(getComponentType(e))+' which is using a "templateUrl" or "styleUrls", but they were never compiled. Please call "TestBed.compileComponents" before your test.'):e}var ngZone=new _angular_core.NgZone({enableLongStackTrace:!0}),ngZoneInjector=_angular_core.ReflectiveInjector.resolveAndCreate([{provide:_angular_core.NgZone,useValue:ngZone}],this.platform.injector);this._moduleRef=this._moduleFactory.create(ngZoneInjector),this._instantiated=!0}},TestBed.prototype._createCompilerAndModule=function(){var _this=this,providers=this._providers.concat([{provide:TestBed,useValue:this}]),declarations=this._declarations,imports=[this.ngModule,this._imports],schemas=this._schemas,DynamicTestModule=function(){function DynamicTestModule(){}return DynamicTestModule}();DynamicTestModule.decorators=[{type:_angular_core.NgModule,args:[{providers:providers,declarations:declarations,imports:imports,schemas:schemas}]}],DynamicTestModule.ctorParameters=function(){return[]};var compilerFactory=this.platform.injector.get(TestingCompilerFactory);return this._compiler=compilerFactory.createTestingCompiler(this._compilerOptions.concat([{useDebug:!0}])),this._compiler.loadAotSummaries(this._aotSummaries),this._moduleOverrides.forEach(function(entry){return _this._compiler.overrideModule(entry[0],entry[1])}),this._componentOverrides.forEach(function(entry){return _this._compiler.overrideComponent(entry[0],entry[1])}),this._directiveOverrides.forEach(function(entry){return _this._compiler.overrideDirective(entry[0],entry[1])}),this._pipeOverrides.forEach(function(entry){return _this._compiler.overridePipe(entry[0],entry[1])}),DynamicTestModule},TestBed.prototype._assertNotInstantiated=function(methodName,methodDescription){if(this._instantiated)throw new Error("Cannot "+methodDescription+" when the test module has already been instantiated. "+("Make sure you are not using `inject` before `"+methodName+"`."))},TestBed.prototype.get=function(token,notFoundValue){if(void 0===notFoundValue&&(notFoundValue=_angular_core.Injector.THROW_IF_NOT_FOUND),this._initIfNeeded(),token===TestBed)return this;var result=this._moduleRef.injector.get(token,UNDEFINED);return result===UNDEFINED?this._compiler.injector.get(token,notFoundValue):result},TestBed.prototype.execute=function(tokens,fn,context){var _this=this;this._initIfNeeded();var params=tokens.map(function(t){return _this.get(t)});return fn.apply(context,params)},TestBed.prototype.overrideModule=function(ngModule,override){this._assertNotInstantiated("overrideModule","override module metadata"),this._moduleOverrides.push([ngModule,override])},TestBed.prototype.overrideComponent=function(component,override){this._assertNotInstantiated("overrideComponent","override component metadata"),this._componentOverrides.push([component,override])},TestBed.prototype.overrideDirective=function(directive,override){this._assertNotInstantiated("overrideDirective","override directive metadata"),this._directiveOverrides.push([directive,override])},TestBed.prototype.overridePipe=function(pipe,override){this._assertNotInstantiated("overridePipe","override pipe metadata"),this._pipeOverrides.push([pipe,override])},TestBed.prototype.createComponent=function(component){var _this=this;this._initIfNeeded();var componentFactory=this._compiler.getComponentFactory(component);if(!componentFactory)throw new Error("Cannot create the component "+_angular_core.ɵstringify(component)+" as it was not imported into the testing module!");var noNgZone=this.get(ComponentFixtureNoNgZone,!1),autoDetect=this.get(ComponentFixtureAutoDetect,!1),ngZone=noNgZone?null:this.get(_angular_core.NgZone,null),testComponentRenderer=this.get(TestComponentRenderer),rootElId="root"+_nextRootElementId++;testComponentRenderer.insertRootElement(rootElId);var initComponent=function(){var componentRef=componentFactory.create(_angular_core.Injector.NULL,[],"#"+rootElId,_this._moduleRef);return new ComponentFixture(componentRef,ngZone,autoDetect)},fixture=ngZone?ngZone.run(initComponent):initComponent();return this._activeFixtures.push(fixture),fixture},TestBed}(),_testBed=null,InjectSetupWrapper=function(){function InjectSetupWrapper(_moduleDef){this._moduleDef=_moduleDef}return InjectSetupWrapper.prototype._addModule=function(){var moduleDef=this._moduleDef();moduleDef&&getTestBed().configureTestingModule(moduleDef)},InjectSetupWrapper.prototype.inject=function(tokens,fn){var self=this;return function(){return self._addModule(),inject(tokens,fn).call(this)}},InjectSetupWrapper}(),_global$1="undefined"==typeof window?global:window;_global$1.beforeEach&&_global$1.beforeEach(function(){TestBed.resetTestingModule(),resetFakeAsyncZone()});var __core_private_testing_placeholder__="";exports.async=async,exports.ComponentFixture=ComponentFixture,exports.resetFakeAsyncZone=resetFakeAsyncZone,exports.fakeAsync=fakeAsync,exports.tick=tick,exports.discardPeriodicTasks=discardPeriodicTasks,exports.flushMicrotasks=flushMicrotasks,exports.TestComponentRenderer=TestComponentRenderer,exports.ComponentFixtureAutoDetect=ComponentFixtureAutoDetect,exports.ComponentFixtureNoNgZone=ComponentFixtureNoNgZone,exports.TestBed=TestBed,exports.getTestBed=getTestBed,exports.inject=inject,exports.InjectSetupWrapper=InjectSetupWrapper,exports.withModule=withModule,exports.__core_private_testing_placeholder__=__core_private_testing_placeholder__,exports.ɵTestingCompiler=TestingCompiler,exports.ɵTestingCompilerFactory=TestingCompilerFactory,Object.defineProperty(exports,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=core-testing.umd.min.js.map |
{ | ||
"name": "@angular/core", | ||
"version": "4.2.0-beta.0", | ||
"version": "4.2.0-beta.1", | ||
"description": "Angular - the core framework", | ||
@@ -5,0 +5,0 @@ "main": "./bundles/core.umd.js", |
@@ -122,3 +122,3 @@ /** | ||
animation DSL language. If this information is new, please navigate to the {@link | ||
Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
Component#animations component animations metadata page} to gain a better understanding of | ||
how animations in Angular are used. | ||
@@ -131,3 +131,3 @@ * | ||
* Triggers are registered within the component annotation data under the {@link | ||
Component#animations-anchor animations section}. An animation trigger can be placed on an element | ||
Component#animations animations section}. An animation trigger can be placed on an element | ||
within a template by referencing the name of the trigger followed by the expression value that the | ||
@@ -176,3 +176,3 @@ trigger is bound to (in the form of `[@triggerName]="expression"`. | ||
* animation DSL language. If this information is new, please navigate to the {@link | ||
* Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
* Component#animations component animations metadata page} to gain a better understanding of | ||
* how animations in Angular are used. | ||
@@ -223,3 +223,3 @@ * | ||
* animation DSL language. If this information is new, please navigate to the {@link | ||
* Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
* Component#animations component animations metadata page} to gain a better understanding of | ||
* how animations in Angular are used. | ||
@@ -256,3 +256,3 @@ * | ||
* animation DSL language. If this information is new, please navigate to the {@link | ||
* Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
* Component#animations component animations metadata page} to gain a better understanding of | ||
* how animations in Angular are used. | ||
@@ -292,3 +292,3 @@ * | ||
* animation DSL language. If this information is new, please navigate to the {@link | ||
* Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
* Component#animations component animations metadata page} to gain a better understanding of | ||
* how animations in Angular are used. | ||
@@ -340,3 +340,3 @@ * | ||
* animation DSL language. If this information is new, please navigate to the {@link | ||
* Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
* Component#animations component animations metadata page} to gain a better understanding of | ||
* how animations in Angular are used. | ||
@@ -390,3 +390,3 @@ * | ||
* animation DSL language. If this information is new, please navigate to the {@link | ||
* Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
* Component#animations component animations metadata page} to gain a better understanding of | ||
* how animations in Angular are used. | ||
@@ -437,3 +437,3 @@ * | ||
* animation DSL language. If this information is new, please navigate to the {@link | ||
* Component#animations-anchor component animations metadata page} to gain a better understanding of | ||
* Component#animations component animations metadata page} to gain a better understanding of | ||
* how animations in Angular are used. | ||
@@ -440,0 +440,0 @@ * |
@@ -115,3 +115,3 @@ /** | ||
* | ||
* {@link Injector} will throw {@link NoAnnotationError} when trying to instantiate a class that | ||
* {@link Injector} will throw an error when trying to instantiate a class that | ||
* does not have `@Injectable` marker, as shown in the example below. | ||
@@ -118,0 +118,0 @@ * |
@@ -105,3 +105,3 @@ /** | ||
* because it needs to resolve the passed-in providers first. | ||
* See {@link Injector#resolve} and {@link Injector#fromResolvedProviders}. | ||
* See {@link ReflectiveInjector#resolve} and {@link ReflectiveInjector#fromResolvedProviders}. | ||
*/ | ||
@@ -173,3 +173,3 @@ static resolveAndCreate(providers: Provider[], parent?: Injector): ReflectiveInjector; | ||
* because it needs to resolve the passed-in providers first. | ||
* See {@link Injector#resolve} and {@link Injector#createChildFromResolved}. | ||
* See {@link ReflectiveInjector#resolve} and {@link ReflectiveInjector#createChildFromResolved}. | ||
*/ | ||
@@ -176,0 +176,0 @@ abstract resolveAndCreateChild(providers: Provider[]): ReflectiveInjector; |
@@ -59,4 +59,7 @@ /** | ||
/** | ||
* Creates an instance of [EventEmitter], which depending on [isAsync], | ||
* Creates an instance of {@link EventEmitter}, which depending on `isAsync`, | ||
* delivers events synchronously or asynchronously. | ||
* | ||
* @param isAsync By default, events are delivered synchronously (default value: `false`). | ||
* Set to `true` for asynchronous event delivery. | ||
*/ | ||
@@ -63,0 +66,0 @@ constructor(isAsync?: boolean); |
@@ -62,15 +62,15 @@ /** | ||
export declare class ViewMetadata { | ||
/** {@link Component.templateUrl} */ | ||
/** {@link Component#templateUrl} */ | ||
templateUrl: string | undefined; | ||
/** {@link Component.template} */ | ||
/** {@link Component#template} */ | ||
template: string | undefined; | ||
/** {@link Component.stylesUrl} */ | ||
/** {@link Component#stylesUrl} */ | ||
styleUrls: string[] | undefined; | ||
/** {@link Component.styles} */ | ||
/** {@link Component#styles} */ | ||
styles: string[] | undefined; | ||
/** {@link Component.encapsulation} */ | ||
/** {@link Component#encapsulation} */ | ||
encapsulation: ViewEncapsulation | undefined; | ||
/** {@link Component.animation} */ | ||
/** {@link Component#animation} */ | ||
animations: any[] | undefined; | ||
/** {@link Component.interpolation} */ | ||
/** {@link Component#interpolation} */ | ||
interpolation: [string, string] | undefined; | ||
@@ -77,0 +77,0 @@ constructor({templateUrl, template, encapsulation, styles, styleUrls, animations, interpolation}?: { |
@@ -78,3 +78,4 @@ /** | ||
* expressed declaratively. For example if you need to set a property or an attribute whose name is | ||
* not statically known, use {@link #setElementProperty} or {@link #setElementAttribute} | ||
* not statically known, use {@link Renderer#setElementProperty} or {@link | ||
* Renderer#setElementAttribute} | ||
* respectively. | ||
@@ -81,0 +82,0 @@ * |
@@ -138,34 +138,35 @@ /** | ||
TypeText = 2, | ||
ProjectedTemplate = 4, | ||
CatRenderNode = 3, | ||
TypeNgContent = 4, | ||
TypePipe = 8, | ||
TypePureArray = 16, | ||
TypePureObject = 32, | ||
TypePurePipe = 64, | ||
CatPureExpression = 112, | ||
TypeValueProvider = 128, | ||
TypeClassProvider = 256, | ||
TypeFactoryProvider = 512, | ||
TypeUseExistingProvider = 1024, | ||
LazyProvider = 2048, | ||
PrivateProvider = 4096, | ||
TypeDirective = 8192, | ||
Component = 16384, | ||
CatProvider = 10112, | ||
OnInit = 32768, | ||
OnDestroy = 65536, | ||
DoCheck = 131072, | ||
OnChanges = 262144, | ||
AfterContentInit = 524288, | ||
AfterContentChecked = 1048576, | ||
AfterViewInit = 2097152, | ||
AfterViewChecked = 4194304, | ||
EmbeddedViews = 8388608, | ||
ComponentView = 16777216, | ||
TypeContentQuery = 33554432, | ||
TypeViewQuery = 67108864, | ||
StaticQuery = 134217728, | ||
DynamicQuery = 268435456, | ||
CatQuery = 100663296, | ||
Types = 100673535, | ||
TypeNgContent = 8, | ||
TypePipe = 16, | ||
TypePureArray = 32, | ||
TypePureObject = 64, | ||
TypePurePipe = 128, | ||
CatPureExpression = 224, | ||
TypeValueProvider = 256, | ||
TypeClassProvider = 512, | ||
TypeFactoryProvider = 1024, | ||
TypeUseExistingProvider = 2048, | ||
LazyProvider = 4096, | ||
PrivateProvider = 8192, | ||
TypeDirective = 16384, | ||
Component = 32768, | ||
CatProvider = 20224, | ||
OnInit = 65536, | ||
OnDestroy = 131072, | ||
DoCheck = 262144, | ||
OnChanges = 524288, | ||
AfterContentInit = 1048576, | ||
AfterContentChecked = 2097152, | ||
AfterViewInit = 4194304, | ||
AfterViewChecked = 8388608, | ||
EmbeddedViews = 16777216, | ||
ComponentView = 33554432, | ||
TypeContentQuery = 67108864, | ||
TypeViewQuery = 134217728, | ||
StaticQuery = 268435456, | ||
DynamicQuery = 536870912, | ||
CatQuery = 201326592, | ||
Types = 201347067, | ||
} | ||
@@ -308,3 +309,6 @@ export interface BindingDef { | ||
ChecksEnabled = 8, | ||
Destroyed = 16, | ||
IsProjectedView = 16, | ||
CheckProjectedView = 32, | ||
CheckProjectedViews = 64, | ||
Destroyed = 128, | ||
CatDetectChanges = 12, | ||
@@ -311,0 +315,0 @@ CatInit = 13, |
@@ -19,2 +19,3 @@ import { ViewEncapsulation } from '../metadata/view'; | ||
export declare function markParentViewsForCheck(view: ViewData): void; | ||
export declare function markParentViewsForCheckProjectedViews(view: ViewData, endView: ViewData): void; | ||
export declare function dispatchEvent(view: ViewData, nodeIndex: number, eventName: string, event: any): boolean; | ||
@@ -21,0 +22,0 @@ export declare function declaredViewContainer(view: ViewData): ElementData | null; |
@@ -11,3 +11,4 @@ /** | ||
export declare function detachEmbeddedView(elementData: ElementData, viewIndex?: number): ViewData | null; | ||
export declare function detachProjectedView(view: ViewData): void; | ||
export declare function moveEmbeddedView(elementData: ElementData, oldViewIndex: number, newViewIndex: number): ViewData; | ||
export declare function renderDetachView(view: ViewData): void; |
/** | ||
* @license Angular v4.2.0-beta.0 | ||
* @license Angular v4.2.0-beta.1 | ||
* (c) 2010-2017 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
@@ -59,3 +59,3 @@ /** | ||
*/ | ||
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef): TestBed; | ||
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed; | ||
/** | ||
@@ -97,3 +97,3 @@ * Reset the providers for the test injector. | ||
private _moduleRef; | ||
private _moduleWithComponentFactories; | ||
private _moduleFactory; | ||
private _compilerOptions; | ||
@@ -109,2 +109,5 @@ private _moduleOverrides; | ||
private _activeFixtures; | ||
private _aotSummaries; | ||
platform: PlatformRef; | ||
ngModule: Type<any> | Type<any>[]; | ||
/** | ||
@@ -123,3 +126,3 @@ * Initialize the environment for testing with a compiler factory, a PlatformRef, and an | ||
*/ | ||
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef): void; | ||
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void; | ||
/** | ||
@@ -132,4 +135,2 @@ * Reset the providers for the test injector. | ||
resetTestingModule(): void; | ||
platform: PlatformRef; | ||
ngModule: Type<any> | Type<any>[]; | ||
configureCompiler(config: { | ||
@@ -136,0 +137,0 @@ providers?: any[]; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"TestComponentRenderer":{"__symbolic":"class","members":{"insertRootElement":[{"__symbolic":"method"}]}},"ComponentFixtureAutoDetect":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureAutoDetect"]},"ComponentFixtureNoNgZone":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureNoNgZone"]},"TestBed":{"__symbolic":"class","members":{"initTestEnvironment":[{"__symbolic":"method"}],"resetTestEnvironment":[{"__symbolic":"method"}],"resetTestingModule":[{"__symbolic":"method"}],"configureCompiler":[{"__symbolic":"method"}],"configureTestingModule":[{"__symbolic":"method"}],"compileComponents":[{"__symbolic":"method"}],"_initIfNeeded":[{"__symbolic":"method"}],"_createCompilerAndModule":[{"__symbolic":"method"}],"_assertNotInstantiated":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"overrideModule":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"createComponent":[{"__symbolic":"method"}]},"statics":{"compileComponents":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"compileComponents"}}},"get":{"__symbolic":"function","parameters":["token","notFoundValue"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"get"},"arguments":[{"__symbolic":"reference","name":"token"},{"__symbolic":"reference","name":"notFoundValue"}]},"defaults":[null,{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injector"},"member":"THROW_IF_NOT_FOUND"}]},"createComponent":{"__symbolic":"function","parameters":["component"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"createComponent"},"arguments":[{"__symbolic":"reference","name":"component"}]}}}},"getTestBed":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"=","left":{"__symbolic":"error","message":"Reference to a local symbol","line":385,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"error","message":"Reference to a local symbol","line":385,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"TestBed"}}}}},"inject":{"__symbolic":"function"},"InjectSetupWrapper":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":441,"character":34}]}],"_addModule":[{"__symbolic":"method"}],"inject":[{"__symbolic":"method"}]}},"withModule":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"TestComponentRenderer":{"__symbolic":"class","members":{"insertRootElement":[{"__symbolic":"method"}]}},"ComponentFixtureAutoDetect":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureAutoDetect"]},"ComponentFixtureNoNgZone":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureNoNgZone"]},"TestBed":{"__symbolic":"class","members":{"initTestEnvironment":[{"__symbolic":"method"}],"resetTestEnvironment":[{"__symbolic":"method"}],"resetTestingModule":[{"__symbolic":"method"}],"configureCompiler":[{"__symbolic":"method"}],"configureTestingModule":[{"__symbolic":"method"}],"compileComponents":[{"__symbolic":"method"}],"_initIfNeeded":[{"__symbolic":"method"}],"_createCompilerAndModule":[{"__symbolic":"method"}],"_assertNotInstantiated":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"overrideModule":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"createComponent":[{"__symbolic":"method"}]},"statics":{"compileComponents":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"compileComponents"}}},"get":{"__symbolic":"function","parameters":["token","notFoundValue"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"get"},"arguments":[{"__symbolic":"reference","name":"token"},{"__symbolic":"reference","name":"notFoundValue"}]},"defaults":[null,{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injector"},"member":"THROW_IF_NOT_FOUND"}]},"createComponent":{"__symbolic":"function","parameters":["component"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"createComponent"},"arguments":[{"__symbolic":"reference","name":"component"}]}}}},"getTestBed":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"=","left":{"__symbolic":"error","message":"Reference to a local symbol","line":385,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"error","message":"Reference to a local symbol","line":385,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"TestBed"}}}}},"inject":{"__symbolic":"function"},"InjectSetupWrapper":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":441,"character":34}]}],"_addModule":[{"__symbolic":"method"}],"inject":[{"__symbolic":"method"}]}},"withModule":{"__symbolic":"function"}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"TestComponentRenderer":{"__symbolic":"class","members":{"insertRootElement":[{"__symbolic":"method"}]}},"ComponentFixtureAutoDetect":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureAutoDetect"]},"ComponentFixtureNoNgZone":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureNoNgZone"]},"TestBed":{"__symbolic":"class","members":{"initTestEnvironment":[{"__symbolic":"method"}],"resetTestEnvironment":[{"__symbolic":"method"}],"resetTestingModule":[{"__symbolic":"method"}],"configureCompiler":[{"__symbolic":"method"}],"configureTestingModule":[{"__symbolic":"method"}],"compileComponents":[{"__symbolic":"method"}],"_initIfNeeded":[{"__symbolic":"method"}],"_createCompilerAndModule":[{"__symbolic":"method"}],"_assertNotInstantiated":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"overrideModule":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"createComponent":[{"__symbolic":"method"}]},"statics":{"compileComponents":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"compileComponents"}}},"get":{"__symbolic":"function","parameters":["token","notFoundValue"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"get"},"arguments":[{"__symbolic":"reference","name":"token"},{"__symbolic":"reference","name":"notFoundValue"}]},"defaults":[null,{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injector"},"member":"THROW_IF_NOT_FOUND"}]},"createComponent":{"__symbolic":"function","parameters":["component"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"createComponent"},"arguments":[{"__symbolic":"reference","name":"component"}]}}}},"getTestBed":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"=","left":{"__symbolic":"error","message":"Reference to a local symbol","line":394,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"error","message":"Reference to a local symbol","line":394,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"TestBed"}}}}},"inject":{"__symbolic":"function"},"InjectSetupWrapper":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":450,"character":34}]}],"_addModule":[{"__symbolic":"method"}],"inject":[{"__symbolic":"method"}]}},"withModule":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"TestComponentRenderer":{"__symbolic":"class","members":{"insertRootElement":[{"__symbolic":"method"}]}},"ComponentFixtureAutoDetect":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureAutoDetect"]},"ComponentFixtureNoNgZone":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ComponentFixtureNoNgZone"]},"TestBed":{"__symbolic":"class","members":{"initTestEnvironment":[{"__symbolic":"method"}],"resetTestEnvironment":[{"__symbolic":"method"}],"resetTestingModule":[{"__symbolic":"method"}],"configureCompiler":[{"__symbolic":"method"}],"configureTestingModule":[{"__symbolic":"method"}],"compileComponents":[{"__symbolic":"method"}],"_initIfNeeded":[{"__symbolic":"method"}],"_createCompilerAndModule":[{"__symbolic":"method"}],"_assertNotInstantiated":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"overrideModule":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"createComponent":[{"__symbolic":"method"}]},"statics":{"compileComponents":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"compileComponents"}}},"get":{"__symbolic":"function","parameters":["token","notFoundValue"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"get"},"arguments":[{"__symbolic":"reference","name":"token"},{"__symbolic":"reference","name":"notFoundValue"}]},"defaults":[null,{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injector"},"member":"THROW_IF_NOT_FOUND"}]},"createComponent":{"__symbolic":"function","parameters":["component"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"createComponent"},"arguments":[{"__symbolic":"reference","name":"component"}]}}}},"getTestBed":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"=","left":{"__symbolic":"error","message":"Reference to a local symbol","line":394,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"error","message":"Reference to a local symbol","line":394,"character":4,"context":{"name":"_testBed"}},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"TestBed"}}}}},"inject":{"__symbolic":"function"},"InjectSetupWrapper":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":450,"character":34}]}],"_addModule":[{"__symbolic":"method"}],"inject":[{"__symbolic":"method"}]}},"withModule":{"__symbolic":"function"}}}] |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { Compiler, CompilerOptions, Component, Directive, Injector, NgModule, Pipe, Type } from '@angular/core'; | ||
import { Compiler, CompilerOptions, Component, ComponentFactory, Directive, Injector, NgModule, Pipe, Type } from '@angular/core'; | ||
import { MetadataOverride } from './metadata_override'; | ||
@@ -22,2 +22,13 @@ /** | ||
overridePipe(directive: Type<any>, overrides: MetadataOverride<Pipe>): void; | ||
/** | ||
* Allows to pass the compile summary from AOT compilation to the JIT compiler, | ||
* so that it can use the code generated by AOT. | ||
*/ | ||
loadAotSummaries(summaries: () => any[]): void; | ||
/** | ||
* Gets the component factory for the given component. | ||
* This assumes that the component has been compiled before calling this call using | ||
* `compileModuleAndAllComponents*`. | ||
*/ | ||
getComponentFactory<T>(component: Type<T>): ComponentFactory<T>; | ||
} | ||
@@ -24,0 +35,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"TestingCompiler":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},"members":{"overrideModule":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}]}},"TestingCompilerFactory":{"__symbolic":"class","members":{"createTestingCompiler":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"TestingCompiler":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},"members":{"overrideModule":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}]}},"TestingCompilerFactory":{"__symbolic":"class","members":{"createTestingCompiler":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"TestingCompiler":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},"members":{"overrideModule":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"loadAotSummaries":[{"__symbolic":"method"}],"getComponentFactory":[{"__symbolic":"method"}]}},"TestingCompilerFactory":{"__symbolic":"class","members":{"createTestingCompiler":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"TestingCompiler":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},"members":{"overrideModule":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"loadAotSummaries":[{"__symbolic":"method"}],"getComponentFactory":[{"__symbolic":"method"}]}},"TestingCompilerFactory":{"__symbolic":"class","members":{"createTestingCompiler":[{"__symbolic":"method"}]}}}}] |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5122117
53975