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:
Jeff Cross
2015-09-03 22:01:36 -07:00
parent 6d13cf9b8f
commit f14b212dc9
286 changed files with 739 additions and 690 deletions

View File

@ -1,7 +1,3 @@
import {bootstrap, Component, Directive, View} from 'angular2/bootstrap';
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle';
import {DOM} from 'angular2/src/core/dom/dom_adapter';
import {window, document, gc} from 'angular2/src/core/facade/browser';
import {
@ -11,14 +7,23 @@ import {
windowProfile,
windowProfileEnd
} from 'angular2/src/test_lib/benchmark_util';
import {NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/directives';
import {bootstrap} from 'angular2/bootstrap';
import {
Component,
Directive,
View,
bind,
NgFor,
NgSwitch,
NgSwitchWhen,
NgSwitchDefault,
LifeCycle
} from 'angular2/core';
import {BrowserDomAdapter} from 'angular2/src/core/dom/browser_adapter';
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/compiler/view_pool';
import {ListWrapper} from 'angular2/src/core/facade/collection';
import {bind} from 'angular2/di';
import {Inject} from 'angular2/src/core/di/decorators';
import {reflector} from 'angular2/src/core/reflection/reflection';