fix(core): export LifeCycle at top-level modules

LifeCycle can now be imported via angular2/angular2 or
angular2/core, so that end users can inject it without
having to use the full source path.

Closes #3395
This commit is contained in:
Jeff Cross 2015-07-30 10:01:31 -07:00
parent 0dbdd5cd3c
commit 4e76cac5b7
4 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,8 @@ export {
ExpressionChangedAfterItHasBeenCheckedException, ExpressionChangedAfterItHasBeenCheckedException,
ChangeDetectionError, ChangeDetectionError,
ChangeDetector,
Locals,
ChangeDetectorRef, ChangeDetectorRef,
WrappedValue, WrappedValue,

View File

@ -18,6 +18,7 @@ export {AppViewManager} from 'angular2/src/core/compiler/view_manager';
export {IQueryList} from 'angular2/src/core/compiler/interface_query'; export {IQueryList} from 'angular2/src/core/compiler/interface_query';
export {QueryList} from 'angular2/src/core/compiler/query_list'; export {QueryList} from 'angular2/src/core/compiler/query_list';
export {DynamicComponentLoader} from 'angular2/src/core/compiler/dynamic_component_loader'; export {DynamicComponentLoader} from 'angular2/src/core/compiler/dynamic_component_loader';
export {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle';
export {ElementRef} from 'angular2/src/core/compiler/element_ref'; export {ElementRef} from 'angular2/src/core/compiler/element_ref';
export {TemplateRef} from 'angular2/src/core/compiler/template_ref'; export {TemplateRef} from 'angular2/src/core/compiler/template_ref';

View File

@ -17,7 +17,7 @@ import {Component, Directive, View} from 'angular2/annotations';
import {DOM} from 'angular2/src/dom/dom_adapter'; import {DOM} from 'angular2/src/dom/dom_adapter';
import {PromiseWrapper} from 'angular2/src/facade/async'; import {PromiseWrapper} from 'angular2/src/facade/async';
import {bind, Inject, Injector} from 'angular2/di'; import {bind, Inject, Injector} from 'angular2/di';
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle'; import {LifeCycle} from 'angular2/core';
import {ExceptionHandler} from 'angular2/src/core/exception_handler'; import {ExceptionHandler} from 'angular2/src/core/exception_handler';
import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability'; import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';
import {DOCUMENT_TOKEN} from 'angular2/src/render/render'; import {DOCUMENT_TOKEN} from 'angular2/src/render/render';

View File

@ -14,7 +14,7 @@ import {
inject, inject,
SpyChangeDetector, SpyChangeDetector,
} from 'angular2/test_lib'; } from 'angular2/test_lib';
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle'; import {LifeCycle} from 'angular2/core';
import {IMPLEMENTS} from 'angular2/src/facade/lang'; import {IMPLEMENTS} from 'angular2/src/facade/lang';
export function main() { export function main() {