fix(router): RouterOutlet loads component twice in a race condition

Closes #7497

Closes #7545
This commit is contained in:
Misko Hevery
2016-03-10 20:42:32 -08:00
committed by Miško Hevery
parent d61aaac400
commit 2f581ffc88
3 changed files with 37 additions and 27 deletions

View File

@ -59,7 +59,7 @@ export abstract class ComponentRef {
*
* TODO(i): rename to destroy to be consistent with AppViewManager and ViewContainerRef
*/
abstract dispose();
abstract dispose(): void;
}
export class ComponentRef_ extends ComponentRef {
@ -84,7 +84,7 @@ export class ComponentRef_ extends ComponentRef {
*/
get hostComponentType(): Type { return this.componentType; }
dispose() { this._dispose(); }
dispose(): void { this._dispose(); }
}
/**