Skip to content

Commit

Permalink
fix(core): export LifeCycle at top-level modules
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jeffbcross committed Jul 30, 2015
1 parent 0dbdd5c commit 4e76cac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions modules/angular2/change_detection.ts
Expand Up @@ -15,6 +15,8 @@ export {
ExpressionChangedAfterItHasBeenCheckedException,
ChangeDetectionError,

ChangeDetector,
Locals,
ChangeDetectorRef,

WrappedValue,
Expand Down
1 change: 1 addition & 0 deletions modules/angular2/core.ts
Expand Up @@ -18,6 +18,7 @@ export {AppViewManager} from 'angular2/src/core/compiler/view_manager';
export {IQueryList} from 'angular2/src/core/compiler/interface_query';
export {QueryList} from 'angular2/src/core/compiler/query_list';
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 {TemplateRef} from 'angular2/src/core/compiler/template_ref';
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/test/core/application_spec.ts
Expand Up @@ -17,7 +17,7 @@ import {Component, Directive, View} from 'angular2/annotations';
import {DOM} from 'angular2/src/dom/dom_adapter';
import {PromiseWrapper} from 'angular2/src/facade/async';
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 {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';
import {DOCUMENT_TOKEN} from 'angular2/src/render/render';
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/test/core/life_cycle/life_cycle_spec.ts
Expand Up @@ -14,7 +14,7 @@ import {
inject,
SpyChangeDetector,
} 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';

export function main() {
Expand Down

0 comments on commit 4e76cac

Please sign in to comment.