refactor: export core APIs from angular2/core
This change moves many APIs to the angular2/core export. This change also automatically adds FORM_BINDINGS in the application root injector. BREAKING CHANGE: Many dependencies that were previously exported from specific APIs are now exported from angular2/core. Affected exports, which should now be included from angular2/core include: angular2/forms angular2/di angular2/directives angular2/change_detection angular2/bootstrap (except for dart users) angular2/render angular2/metadata angular2/debug angular2/pipes Closes #3977
This commit is contained in:
@ -1,31 +1,20 @@
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Define angular core API here.
|
||||
* Starting point to import all public core APIs.
|
||||
*/
|
||||
export {APP_COMPONENT} from 'angular2/src/core/application_tokens';
|
||||
export {Type} from 'angular2/src/core/facade/lang';
|
||||
export {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
|
||||
|
||||
// Compiler Related Dependencies.
|
||||
export {AppRootUrl} from 'angular2/src/core/services/app_root_url';
|
||||
export {UrlResolver} from 'angular2/src/core/services/url_resolver';
|
||||
export {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper';
|
||||
export {DirectiveResolver} from 'angular2/src/core/compiler/directive_resolver';
|
||||
export {Compiler} from 'angular2/src/core/compiler/compiler';
|
||||
|
||||
export {AppViewManager} from 'angular2/src/core/compiler/view_manager';
|
||||
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';
|
||||
export {ViewRef, HostViewRef, ProtoViewRef} from 'angular2/src/core/compiler/view_ref';
|
||||
export {ViewContainerRef} from 'angular2/src/core/compiler/view_container_ref';
|
||||
export {ComponentRef} from 'angular2/src/core/compiler/dynamic_component_loader';
|
||||
|
||||
export {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
export {Observable, EventEmitter} from 'angular2/src/core/facade/async';
|
||||
export {Predicate} from 'angular2/src/core/facade/collection';
|
||||
export * from './src/core/metadata';
|
||||
export * from './src/core/util';
|
||||
export * from './src/core/di';
|
||||
export * from './src/core/pipes';
|
||||
export * from './src/core/facade';
|
||||
export * from './src/core/application';
|
||||
export * from './src/core/services';
|
||||
export * from './src/core/compiler';
|
||||
export * from './src/core/lifecycle';
|
||||
export * from './src/core/zone';
|
||||
export * from './src/core/render';
|
||||
export * from './src/core/directives';
|
||||
export * from './src/core/forms';
|
||||
export * from './src/core/debug';
|
||||
export * from './src/core/change_detection';
|
||||
|
Reference in New Issue
Block a user