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,8 @@ import {
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
import {Component, View, NgIf} from 'angular2/core';
|
||||
import {Component, View} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
|
||||
import {IS_DART} from 'angular2/src/facade/lang';
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ library angular2.test.directives.observable_list_iterable_diff_spec;
|
||||
|
||||
import 'package:angular2/testing_internal.dart';
|
||||
import 'package:observe/observe.dart' show ObservableList;
|
||||
import 'package:angular2/core.dart'
|
||||
show ObservableListDiffFactory, ChangeDetectorRef;
|
||||
import 'package:angular2/core.dart' show ChangeDetectorRef;
|
||||
import 'package:angular2/common.dart' show ObservableListDiffFactory;
|
||||
|
||||
@proxy
|
||||
class SpyChangeDetectorRef extends SpyObject implements ChangeDetectorRef {
|
||||
|
||||
@@ -17,6 +17,8 @@ import {
|
||||
|
||||
import {SpyNgControl, SpyValueAccessor} from '../spies';
|
||||
|
||||
import {QueryList} from 'angular2/core';
|
||||
|
||||
import {
|
||||
ControlGroup,
|
||||
Control,
|
||||
@@ -32,9 +34,8 @@ import {
|
||||
DefaultValueAccessor,
|
||||
CheckboxControlValueAccessor,
|
||||
SelectControlValueAccessor,
|
||||
QueryList,
|
||||
Validator
|
||||
} from 'angular2/core';
|
||||
} from 'angular2/common';
|
||||
|
||||
|
||||
import {selectValueAccessor, composeValidators} from 'angular2/src/common/forms/directives/shared';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
afterEach,
|
||||
el
|
||||
} from 'angular2/testing_internal';
|
||||
import {Control, FormBuilder} from 'angular2/core';
|
||||
import {Control, FormBuilder} from 'angular2/common';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
|
||||
export function main() {
|
||||
|
||||
@@ -19,23 +19,21 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {Input, Provider, forwardRef} from 'angular2/core';
|
||||
import {
|
||||
Input,
|
||||
Control,
|
||||
ControlGroup,
|
||||
ControlValueAccessor,
|
||||
FORM_DIRECTIVES,
|
||||
NG_VALIDATORS,
|
||||
NG_ASYNC_VALIDATORS,
|
||||
Provider,
|
||||
NgControl,
|
||||
NgIf,
|
||||
NgFor,
|
||||
NgForm,
|
||||
Validators,
|
||||
forwardRef,
|
||||
Validator
|
||||
} from 'angular2/core';
|
||||
} from 'angular2/common';
|
||||
import {By} from 'angular2/platform/browser';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
tick,
|
||||
inject
|
||||
} from 'angular2/testing_internal';
|
||||
import {ControlGroup, Control, ControlArray, Validators} from 'angular2/core';
|
||||
import {ControlGroup, Control, ControlArray, Validators} from 'angular2/common';
|
||||
import {IS_DART, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
import {TimerWrapper, ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
tick,
|
||||
el
|
||||
} from 'angular2/testing_internal';
|
||||
import {ControlGroup, Control, Validators, AbstractControl, ControlArray} from 'angular2/core';
|
||||
import {ControlGroup, Control, Validators, AbstractControl, ControlArray} from 'angular2/common';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||
import {EventEmitter, ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
|
||||
@@ -14,7 +14,8 @@ import {
|
||||
import {SpyChangeDetectorRef} from '../spies';
|
||||
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
import {AsyncPipe, WrappedValue} from 'angular2/core';
|
||||
import {AsyncPipe} from 'angular2/common';
|
||||
import {WrappedValue} from 'angular2/core';
|
||||
import {
|
||||
EventEmitter,
|
||||
ObservableWrapper,
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
browserDetection
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DatePipe} from 'angular2/core';
|
||||
import {DatePipe} from 'angular2/common';
|
||||
import {DateWrapper} from 'angular2/src/facade/lang';
|
||||
import {PipeResolver} from 'angular2/src/core/linker/pipe_resolver';
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
import {Json, RegExp, NumberWrapper, StringWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
import {JsonPipe, Component} from 'angular2/core';
|
||||
import {Component} from 'angular2/core';
|
||||
import {JsonPipe} from 'angular2/common';
|
||||
|
||||
export function main() {
|
||||
describe("JsonPipe", () => {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
afterEach
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {LowerCasePipe} from 'angular2/core';
|
||||
import {LowerCasePipe} from 'angular2/common';
|
||||
|
||||
export function main() {
|
||||
describe("LowerCasePipe", () => {
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
browserDetection
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {DecimalPipe, PercentPipe, CurrencyPipe} from 'angular2/core';
|
||||
import {DecimalPipe, PercentPipe, CurrencyPipe} from 'angular2/common';
|
||||
|
||||
export function main() {
|
||||
// TODO(mlaval): enable tests when Intl API is no longer used, see
|
||||
|
||||
@@ -13,7 +13,8 @@ import {
|
||||
AsyncTestCompleter
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {SlicePipe, Component} from 'angular2/core';
|
||||
import {Component} from 'angular2/core';
|
||||
import {SlicePipe} from 'angular2/common';
|
||||
|
||||
export function main() {
|
||||
describe("SlicePipe", () => {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
afterEach
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {UpperCasePipe} from 'angular2/core';
|
||||
import {UpperCasePipe} from 'angular2/common';
|
||||
|
||||
export function main() {
|
||||
describe("UpperCasePipe", () => {
|
||||
|
||||
@@ -18,7 +18,8 @@ import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
|
||||
import {PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
import {Injectable, NgFor, NgIf} from 'angular2/core';
|
||||
import {Injectable} from 'angular2/core';
|
||||
import {NgFor, NgIf} from 'angular2/common';
|
||||
import {Scope} from 'angular2/core';
|
||||
import {By} from 'angular2/platform/browser';
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ import {
|
||||
Component,
|
||||
Directive,
|
||||
Inject,
|
||||
NgFor,
|
||||
Query,
|
||||
QueryList,
|
||||
View
|
||||
} from 'angular2/core';
|
||||
import {NgFor} from 'angular2/common';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
import {asNativeElements} from 'angular2/core';
|
||||
|
||||
|
||||
@@ -17,7 +17,8 @@ import {
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {OnDestroy} from 'angular2/lifecycle_hooks';
|
||||
import {Injector, NgIf, inspectElement} from 'angular2/core';
|
||||
import {Injector, inspectElement} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {By} from 'angular2/platform/browser';
|
||||
import {Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
||||
import {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
|
||||
@@ -54,11 +54,11 @@ import {
|
||||
Inject,
|
||||
Host,
|
||||
SkipSelf,
|
||||
SkipSelfMetadata,
|
||||
NgIf,
|
||||
NgFor
|
||||
SkipSelfMetadata
|
||||
} from 'angular2/core';
|
||||
|
||||
import {NgIf, NgFor} from 'angular2/common';
|
||||
|
||||
import {AsyncPipe} from 'angular2/common';
|
||||
|
||||
import {
|
||||
|
||||
@@ -19,8 +19,6 @@ import {
|
||||
Component,
|
||||
Directive,
|
||||
Injectable,
|
||||
NgIf,
|
||||
NgFor,
|
||||
Optional,
|
||||
TemplateRef,
|
||||
Query,
|
||||
@@ -36,7 +34,7 @@ import {
|
||||
AfterContentChecked,
|
||||
AfterViewChecked
|
||||
} from 'angular2/core';
|
||||
|
||||
import {NgIf, NgFor} from 'angular2/common';
|
||||
import {asNativeElements} from 'angular2/core';
|
||||
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@ import {
|
||||
TestComponentBuilder
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Injectable, NgIf, provide} from 'angular2/core';
|
||||
import {Injectable, provide} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {Directive, Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
||||
|
||||
@Component({selector: 'child-comp'})
|
||||
|
||||
@@ -14,7 +14,8 @@ import {
|
||||
TestComponentBuilder
|
||||
} from 'angular2/testing';
|
||||
|
||||
import {Injectable, NgIf, bind} from 'angular2/core';
|
||||
import {Injectable, bind} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {Directive, Component, View, ViewMetadata} from 'angular2/angular2';
|
||||
import {XHR} from 'angular2/src/compiler/xhr';
|
||||
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
||||
|
||||
@@ -21,9 +21,9 @@ import {
|
||||
Component,
|
||||
View,
|
||||
Injectable,
|
||||
ElementRef,
|
||||
NgIf
|
||||
ElementRef
|
||||
} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {WebWorkerRenderer} from "angular2/src/web_workers/worker/renderer";
|
||||
import {
|
||||
ClientMessageBrokerFactory,
|
||||
|
||||
Reference in New Issue
Block a user