cleanup(core): stop reexporting angular2/common from angular2/core
All common directives, forms, and pipes have been moved out of angular2/core, but we kept reexporting them to make transition easier. This commit removes the reexports. BREAKING CHANGE Before import {NgIf} from 'angular2/core'; After import {NgIf} from 'angular2/common'; Closes #5362
This commit is contained in:
@ -14,7 +14,6 @@ import {
|
||||
bind,
|
||||
provide,
|
||||
Provider,
|
||||
NgIf,
|
||||
ViewMetadata
|
||||
} from 'angular2/core';
|
||||
|
||||
|
@ -1,13 +1,6 @@
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {
|
||||
Component,
|
||||
Directive,
|
||||
DynamicComponentLoader,
|
||||
ElementRef,
|
||||
View,
|
||||
NgIf,
|
||||
NgFor
|
||||
} from 'angular2/core';
|
||||
import {Component, Directive, DynamicComponentLoader, ElementRef, View} from 'angular2/core';
|
||||
import {NgIf, NgFor} from 'angular2/common';
|
||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
||||
|
@ -8,17 +8,8 @@ import {
|
||||
windowProfileEnd
|
||||
} from 'angular2/src/testing/benchmark_util';
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {
|
||||
Component,
|
||||
Directive,
|
||||
View,
|
||||
bind,
|
||||
provide,
|
||||
NgFor,
|
||||
NgSwitch,
|
||||
NgSwitchWhen,
|
||||
NgSwitchDefault
|
||||
} from 'angular2/core';
|
||||
import {Component, Directive, View, bind, provide} from 'angular2/core';
|
||||
import {NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/common';
|
||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
||||
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
|
||||
|
@ -2,7 +2,7 @@ import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
||||
import {TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {ScrollAreaComponent} from './scroll_area';
|
||||
import {NgIf, NgFor} from 'angular2/core';
|
||||
import {NgIf, NgFor} from 'angular2/common';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {document} from 'angular2/src/facade/browser';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {ListWrapper, Map} from 'angular2/src/facade/collection';
|
||||
import {Company, Opportunity, Offering, Account, CustomDate, STATUS_LIST} from './common';
|
||||
import {NgFor} from 'angular2/core';
|
||||
import {NgFor} from 'angular2/common';
|
||||
|
||||
import {Component, Directive, View} from 'angular2/angular2';
|
||||
|
||||
|
@ -14,7 +14,7 @@ import {
|
||||
} from './common';
|
||||
import {generateOfferings} from './random_data';
|
||||
import {ScrollItemComponent} from './scroll_item';
|
||||
import {NgFor} from 'angular2/core';
|
||||
import {NgFor} from 'angular2/common';
|
||||
|
||||
@Component({
|
||||
selector: 'scroll-area',
|
||||
|
@ -1,4 +1,5 @@
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {
|
||||
Compiler,
|
||||
Component,
|
||||
@ -7,8 +8,7 @@ import {
|
||||
ViewContainerRef,
|
||||
bind,
|
||||
provide,
|
||||
Provider,
|
||||
NgIf
|
||||
Provider
|
||||
} from 'angular2/core';
|
||||
import {ComponentRef_} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
|
@ -7,9 +7,9 @@ import {
|
||||
ViewContainerRef,
|
||||
bind,
|
||||
provide,
|
||||
Provider,
|
||||
NgIf
|
||||
Provider
|
||||
} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
|
||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
Reference in New Issue
Block a user