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:
parent
36a423fac8
commit
5ba9ced1ab
@ -1,25 +0,0 @@
|
|||||||
library angular2.core;
|
|
||||||
|
|
||||||
// Public Core API
|
|
||||||
export 'package:angular2/src/core/metadata.dart';
|
|
||||||
export 'package:angular2/src/core/util.dart';
|
|
||||||
export 'package:angular2/src/core/dev_mode.dart';
|
|
||||||
export 'package:angular2/src/core/di.dart';
|
|
||||||
export 'package:angular2/src/common/pipes.dart';
|
|
||||||
export 'package:angular2/src/facade/facade.dart';
|
|
||||||
export 'package:angular2/src/core/application_ref.dart'
|
|
||||||
hide ApplicationRef_, PlatformRef_;
|
|
||||||
export 'package:angular2/src/core/application_tokens.dart' show APP_ID, APP_COMPONENT, APP_INITIALIZER, PLATFORM_INITIALIZER;
|
|
||||||
export 'package:angular2/src/core/linker.dart';
|
|
||||||
export 'package:angular2/src/core/zone.dart';
|
|
||||||
export 'package:angular2/src/core/render.dart';
|
|
||||||
export 'package:angular2/src/common/directives.dart';
|
|
||||||
export 'package:angular2/src/common/forms.dart';
|
|
||||||
export 'package:angular2/src/core/debug/debug_element.dart' show DebugElement, Scope, inspectElement, asNativeElements;
|
|
||||||
export 'package:angular2/src/core/testability/testability.dart';
|
|
||||||
export 'package:angular2/src/core/change_detection.dart';
|
|
||||||
export 'package:angular2/src/core/platform_directives_and_pipes.dart';
|
|
||||||
export 'package:angular2/src/core/platform_common_providers.dart';
|
|
||||||
export 'package:angular2/src/core/application_common_providers.dart';
|
|
||||||
export 'package:angular2/src/core/reflection/reflection.dart';
|
|
||||||
export 'package:angular2/src/core/dom/dom_adapter.dart';
|
|
@ -5,10 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
export * from './src/core/metadata';
|
export * from './src/core/metadata';
|
||||||
export * from './src/core/util';
|
export * from './src/core/util';
|
||||||
|
export * from './src/core/dev_mode';
|
||||||
export * from './src/core/di';
|
export * from './src/core/di';
|
||||||
export * from './src/common/pipes';
|
|
||||||
export * from './src/facade/facade';
|
export * from './src/facade/facade';
|
||||||
export * from './src/core/linker';
|
|
||||||
export {platform, createNgZone, PlatformRef, ApplicationRef} from './src/core/application_ref';
|
export {platform, createNgZone, PlatformRef, ApplicationRef} from './src/core/application_ref';
|
||||||
export {
|
export {
|
||||||
APP_ID,
|
APP_ID,
|
||||||
@ -18,8 +17,7 @@ export {
|
|||||||
} from './src/core/application_tokens';
|
} from './src/core/application_tokens';
|
||||||
export * from './src/core/zone';
|
export * from './src/core/zone';
|
||||||
export * from './src/core/render';
|
export * from './src/core/render';
|
||||||
export * from './src/common/directives';
|
export * from './src/core/linker';
|
||||||
export * from './src/common/forms';
|
|
||||||
export {
|
export {
|
||||||
DebugElement,
|
DebugElement,
|
||||||
Scope,
|
Scope,
|
||||||
@ -29,8 +27,7 @@ export {
|
|||||||
export * from './src/core/testability/testability';
|
export * from './src/core/testability/testability';
|
||||||
export * from './src/core/change_detection';
|
export * from './src/core/change_detection';
|
||||||
export * from './src/core/platform_directives_and_pipes';
|
export * from './src/core/platform_directives_and_pipes';
|
||||||
export * from './src/core/dev_mode';
|
|
||||||
export * from './src/core/reflection/reflection';
|
|
||||||
export * from './src/core/application_common_providers';
|
|
||||||
export * from './src/core/platform_common_providers';
|
export * from './src/core/platform_common_providers';
|
||||||
|
export * from './src/core/application_common_providers';
|
||||||
|
export * from './src/core/reflection/reflection';
|
||||||
export * from './src/core/dom/dom_adapter';
|
export * from './src/core/dom/dom_adapter';
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
import {isPresent, isString, StringWrapper, isBlank, isArray} from 'angular2/src/facade/lang';
|
import {isPresent, isString, StringWrapper, isBlank, isArray} from 'angular2/src/facade/lang';
|
||||||
import {DoCheck, OnDestroy} from 'angular2/lifecycle_hooks';
|
|
||||||
import {Directive} from 'angular2/src/core/metadata';
|
|
||||||
import {ElementRef} from 'angular2/src/core/linker';
|
|
||||||
import {
|
import {
|
||||||
|
DoCheck,
|
||||||
|
OnDestroy,
|
||||||
|
Directive,
|
||||||
|
ElementRef,
|
||||||
IterableDiffer,
|
IterableDiffer,
|
||||||
IterableDiffers,
|
IterableDiffers,
|
||||||
KeyValueDiffer,
|
KeyValueDiffer,
|
||||||
KeyValueDiffers
|
KeyValueDiffers,
|
||||||
} from 'angular2/src/core/change_detection';
|
Renderer
|
||||||
import {Renderer} from 'angular2/src/core/render';
|
} from 'angular2/core';
|
||||||
import {StringMapWrapper, isListLikeIterable} from 'angular2/src/facade/collection';
|
import {StringMapWrapper, isListLikeIterable} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
import {DoCheck} from 'angular2/lifecycle_hooks';
|
|
||||||
import {Directive} from 'angular2/src/core/metadata';
|
|
||||||
import {
|
import {
|
||||||
|
DoCheck,
|
||||||
|
Directive,
|
||||||
ChangeDetectorRef,
|
ChangeDetectorRef,
|
||||||
IterableDiffer,
|
IterableDiffer,
|
||||||
IterableDiffers
|
IterableDiffers,
|
||||||
} from 'angular2/src/core/change_detection';
|
ViewContainerRef,
|
||||||
import {ViewContainerRef, TemplateRef, ViewRef} from 'angular2/src/core/linker';
|
TemplateRef,
|
||||||
|
ViewRef
|
||||||
|
} from 'angular2/core';
|
||||||
import {isPresent, isBlank} from 'angular2/src/facade/lang';
|
import {isPresent, isBlank} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import {Directive} from 'angular2/src/core/metadata';
|
import {Directive, ViewContainerRef, TemplateRef} from 'angular2/core';
|
||||||
import {ViewContainerRef, TemplateRef} from 'angular2/src/core/linker';
|
|
||||||
import {isBlank} from 'angular2/src/facade/lang';
|
import {isBlank} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import {DoCheck} from 'angular2/lifecycle_hooks';
|
|
||||||
import {
|
import {
|
||||||
|
DoCheck,
|
||||||
KeyValueDiffer,
|
KeyValueDiffer,
|
||||||
KeyValueDiffers,
|
KeyValueDiffers,
|
||||||
} from 'angular2/src/core/change_detection';
|
ElementRef,
|
||||||
import {ElementRef} from 'angular2/src/core/linker';
|
Directive,
|
||||||
import {Directive} from 'angular2/src/core/metadata';
|
Renderer
|
||||||
import {Renderer} from 'angular2/src/core/render';
|
} from 'angular2/core';
|
||||||
import {isPresent, isBlank, print} from 'angular2/src/facade/lang';
|
import {isPresent, isBlank, print} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import {Directive} from 'angular2/src/core/metadata';
|
import {Directive, Host, ViewContainerRef, TemplateRef} from 'angular2/core';
|
||||||
import {Host} from 'angular2/src/core/di';
|
|
||||||
import {ViewContainerRef, TemplateRef} from 'angular2/src/core/linker';
|
|
||||||
import {isPresent, isBlank, normalizeBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
import {isPresent, isBlank, normalizeBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {ListWrapper, Map} from 'angular2/src/facade/collection';
|
import {ListWrapper, Map} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import {Directive} from 'angular2/src/core/metadata';
|
import {Directive, Renderer, ElementRef, Self, forwardRef, Provider} from 'angular2/core';
|
||||||
import {Renderer} from 'angular2/src/core/render';
|
|
||||||
import {ElementRef} from 'angular2/src/core/linker';
|
|
||||||
import {Self, forwardRef, Provider} from 'angular2/src/core/di';
|
|
||||||
|
|
||||||
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import {OpaqueToken} from 'angular2/core';
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {OpaqueToken} from 'angular2/src/core/di';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A bridge between a control and a native element.
|
* A bridge between a control and a native element.
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import {Directive} from 'angular2/src/core/metadata';
|
import {Directive, ElementRef, Renderer, Self, forwardRef, Provider} from 'angular2/core';
|
||||||
import {ElementRef} from 'angular2/src/core/linker';
|
|
||||||
import {Renderer} from 'angular2/src/core/render';
|
|
||||||
import {Self, forwardRef, Provider} from 'angular2/src/core/di';
|
|
||||||
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
||||||
import {isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
import {isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
import {OnInit, OnDestroy} from 'angular2/lifecycle_hooks';
|
import {
|
||||||
import {Directive} from 'angular2/src/core/metadata';
|
OnInit,
|
||||||
import {Optional, Inject, Host, SkipSelf, forwardRef, Provider} from 'angular2/src/core/di';
|
OnDestroy,
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
Directive,
|
||||||
|
Optional,
|
||||||
|
Inject,
|
||||||
|
Host,
|
||||||
|
SkipSelf,
|
||||||
|
forwardRef,
|
||||||
|
Provider
|
||||||
|
} from 'angular2/core';
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
import {ControlContainer} from './control_container';
|
import {ControlContainer} from './control_container';
|
||||||
|
@ -1,9 +1,19 @@
|
|||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||||
import {OnChanges, OnDestroy} from 'angular2/lifecycle_hooks';
|
|
||||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
import {
|
||||||
import {Query, Directive} from 'angular2/src/core/metadata';
|
OnChanges,
|
||||||
import {forwardRef, Host, SkipSelf, Provider, Inject, Optional} from 'angular2/src/core/di';
|
OnDestroy,
|
||||||
|
SimpleChange,
|
||||||
|
Query,
|
||||||
|
Directive,
|
||||||
|
forwardRef,
|
||||||
|
Host,
|
||||||
|
SkipSelf,
|
||||||
|
Provider,
|
||||||
|
Inject,
|
||||||
|
Optional
|
||||||
|
} from 'angular2/core';
|
||||||
|
|
||||||
import {ControlContainer} from './control_container';
|
import {ControlContainer} from './control_container';
|
||||||
import {NgControl} from './ng_control';
|
import {NgControl} from './ng_control';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import {Directive} from 'angular2/src/core/metadata';
|
import {Directive, Self} from 'angular2/core';
|
||||||
import {Self} from 'angular2/src/core/di';
|
|
||||||
import {NgControl} from './ng_control';
|
import {NgControl} from './ng_control';
|
||||||
import {isBlank, isPresent} from 'angular2/src/facade/lang';
|
import {isBlank, isPresent} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@ import {
|
|||||||
} from 'angular2/src/facade/async';
|
} from 'angular2/src/facade/async';
|
||||||
import {StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
import {StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {isPresent, isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
import {isPresent, isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {Directive} from 'angular2/src/core/metadata';
|
import {Directive, forwardRef, Provider, Optional, Inject} from 'angular2/core';
|
||||||
import {forwardRef, Provider, Optional, Inject} from 'angular2/src/core/di';
|
|
||||||
import {NgControl} from './ng_control';
|
import {NgControl} from './ng_control';
|
||||||
import {Form} from './form_interface';
|
import {Form} from './form_interface';
|
||||||
import {NgControlGroup} from './ng_control_group';
|
import {NgControlGroup} from './ng_control_group';
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||||
import {OnChanges} from 'angular2/lifecycle_hooks';
|
import {
|
||||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
OnChanges,
|
||||||
import {Query, Directive} from 'angular2/src/core/metadata';
|
SimpleChange,
|
||||||
import {forwardRef, Provider, Inject, Optional} from 'angular2/src/core/di';
|
Query,
|
||||||
|
Directive,
|
||||||
|
forwardRef,
|
||||||
|
Provider,
|
||||||
|
Inject,
|
||||||
|
Optional
|
||||||
|
} from 'angular2/core';
|
||||||
import {NgControl} from './ng_control';
|
import {NgControl} from './ng_control';
|
||||||
import {Control} from '../model';
|
import {Control} from '../model';
|
||||||
import {Validators, NG_VALIDATORS, NG_ASYNC_VALIDATORS} from '../validators';
|
import {Validators, NG_VALIDATORS, NG_ASYNC_VALIDATORS} from '../validators';
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {ListWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||||
import {ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
|
import {ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
|
||||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
import {
|
||||||
|
SimpleChange,
|
||||||
import {OnChanges} from 'angular2/lifecycle_hooks';
|
OnChanges,
|
||||||
import {Directive} from 'angular2/src/core/metadata';
|
Directive,
|
||||||
import {forwardRef, Provider, Inject, Optional} from 'angular2/src/core/di';
|
forwardRef,
|
||||||
|
Provider,
|
||||||
|
Inject,
|
||||||
|
Optional
|
||||||
|
} from 'angular2/core';
|
||||||
import {NgControl} from './ng_control';
|
import {NgControl} from './ng_control';
|
||||||
import {NgControlGroup} from './ng_control_group';
|
import {NgControlGroup} from './ng_control_group';
|
||||||
import {ControlContainer} from './control_container';
|
import {ControlContainer} from './control_container';
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||||
import {OnChanges} from 'angular2/lifecycle_hooks';
|
import {
|
||||||
import {SimpleChange} from 'angular2/src/core/change_detection';
|
OnChanges,
|
||||||
import {Query, Directive} from 'angular2/src/core/metadata';
|
SimpleChange,
|
||||||
import {forwardRef, Provider, Inject, Optional} from 'angular2/src/core/di';
|
Query,
|
||||||
|
Directive,
|
||||||
|
forwardRef,
|
||||||
|
Provider,
|
||||||
|
Inject,
|
||||||
|
Optional
|
||||||
|
} from 'angular2/core';
|
||||||
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';
|
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';
|
||||||
import {NgControl} from './ng_control';
|
import {NgControl} from './ng_control';
|
||||||
import {Control} from '../model';
|
import {Control} from '../model';
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import {Directive} from 'angular2/src/core/metadata';
|
import {Directive, ElementRef, Renderer, Self, forwardRef, Provider} from 'angular2/core';
|
||||||
import {ElementRef} from 'angular2/src/core/linker';
|
|
||||||
import {Renderer} from 'angular2/src/core/render';
|
|
||||||
import {Self, forwardRef, Provider} from 'angular2/src/core/di';
|
|
||||||
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
||||||
import {isBlank, CONST_EXPR, NumberWrapper} from 'angular2/src/facade/lang';
|
import {isBlank, CONST_EXPR, NumberWrapper} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
import {Self, forwardRef, Provider} from 'angular2/src/core/di';
|
import {
|
||||||
import {Renderer} from 'angular2/src/core/render';
|
Query,
|
||||||
import {ElementRef, QueryList} from 'angular2/src/core/linker';
|
Directive,
|
||||||
import {Query, Directive} from 'angular2/src/core/metadata';
|
Renderer,
|
||||||
|
Self,
|
||||||
|
forwardRef,
|
||||||
|
Provider,
|
||||||
|
ElementRef,
|
||||||
|
QueryList
|
||||||
|
} from 'angular2/core';
|
||||||
|
|
||||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||||
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from './control_value_accessor';
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import {forwardRef, Provider, OpaqueToken} from 'angular2/src/core/di';
|
import {forwardRef, Provider, OpaqueToken, Attribute, Directive} from 'angular2/core';
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {Attribute, Directive} from 'angular2/src/core/metadata';
|
|
||||||
import {Validators, NG_VALIDATORS} from '../validators';
|
import {Validators, NG_VALIDATORS} from '../validators';
|
||||||
import {Control} from '../model';
|
import {Control} from '../model';
|
||||||
import * as modelModule from '../model';
|
import * as modelModule from '../model';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {Injectable} from 'angular2/src/core/di';
|
import {Injectable} from 'angular2/core';
|
||||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||||
import {isPresent, isArray, CONST_EXPR, Type} from 'angular2/src/facade/lang';
|
import {isPresent, isArray, CONST_EXPR, Type} from 'angular2/src/facade/lang';
|
||||||
import * as modelModule from './model';
|
import * as modelModule from './model';
|
||||||
|
@ -2,7 +2,7 @@ import {isBlank, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
|||||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||||
import {ListWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||||
import {OpaqueToken} from 'angular2/src/core/di';
|
import {OpaqueToken} from 'angular2/core';
|
||||||
|
|
||||||
import * as modelModule from './model';
|
import * as modelModule from './model';
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import {isBlank, isPresent, isPromise, CONST} from 'angular2/src/facade/lang';
|
import {isBlank, isPresent, isPromise, CONST} from 'angular2/src/facade/lang';
|
||||||
import {Promise, ObservableWrapper, Observable, EventEmitter} from 'angular2/src/facade/async';
|
import {Promise, ObservableWrapper, Observable, EventEmitter} from 'angular2/src/facade/async';
|
||||||
import {Pipe} from 'angular2/src/core/metadata';
|
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
|
||||||
import {
|
import {
|
||||||
|
Pipe,
|
||||||
|
Injectable,
|
||||||
ChangeDetectorRef,
|
ChangeDetectorRef,
|
||||||
PipeOnDestroy,
|
PipeOnDestroy,
|
||||||
PipeTransform,
|
PipeTransform,
|
||||||
WrappedValue
|
WrappedValue
|
||||||
} from 'angular2/src/core/change_detection';
|
} from 'angular2/core';
|
||||||
|
|
||||||
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
||||||
|
|
||||||
|
@ -9,9 +9,7 @@ import {
|
|||||||
FunctionWrapper
|
FunctionWrapper
|
||||||
} from 'angular2/src/facade/lang';
|
} from 'angular2/src/facade/lang';
|
||||||
import {DateFormatter} from 'angular2/src/facade/intl';
|
import {DateFormatter} from 'angular2/src/facade/intl';
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
import {PipeTransform, WrappedValue, Pipe, Injectable} from 'angular2/core';
|
||||||
import {Pipe} from 'angular2/src/core/metadata';
|
|
||||||
import {PipeTransform, WrappedValue} from 'angular2/src/core/change_detection';
|
|
||||||
import {StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
import {StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import {isBlank, isPresent, Json, CONST} from 'angular2/src/facade/lang';
|
import {isBlank, isPresent, Json, CONST} from 'angular2/src/facade/lang';
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
import {Injectable, PipeTransform, WrappedValue, Pipe} from 'angular2/core';
|
||||||
import {PipeTransform, WrappedValue} from 'angular2/src/core/change_detection';
|
|
||||||
import {Pipe} from 'angular2/src/core/metadata';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transforms any input value using `JSON.stringify`. Useful for debugging.
|
* Transforms any input value using `JSON.stringify`. Useful for debugging.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import {isString, CONST, isBlank} from 'angular2/src/facade/lang';
|
import {isString, CONST, isBlank} from 'angular2/src/facade/lang';
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
import {Injectable, PipeTransform, WrappedValue, Pipe} from 'angular2/core';
|
||||||
import {PipeTransform, WrappedValue} from 'angular2/src/core/change_detection';
|
|
||||||
import {Pipe} from 'angular2/src/core/metadata';
|
|
||||||
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,9 +10,7 @@ import {
|
|||||||
} from 'angular2/src/facade/lang';
|
} from 'angular2/src/facade/lang';
|
||||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||||
import {NumberFormatter, NumberFormatStyle} from 'angular2/src/facade/intl';
|
import {NumberFormatter, NumberFormatStyle} from 'angular2/src/facade/intl';
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
import {Injectable, PipeTransform, WrappedValue, Pipe} from 'angular2/core';
|
||||||
import {PipeTransform, WrappedValue} from 'angular2/src/core/change_detection';
|
|
||||||
import {Pipe} from 'angular2/src/core/metadata';
|
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
import {isBlank, isString, isArray, StringWrapper, CONST} from 'angular2/src/facade/lang';
|
import {isBlank, isString, isArray, StringWrapper, CONST} from 'angular2/src/facade/lang';
|
||||||
import {BaseException} from 'angular2/src/facade/exceptions';
|
import {BaseException} from 'angular2/src/facade/exceptions';
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
import {Injectable, PipeTransform, WrappedValue, Pipe} from 'angular2/core';
|
||||||
|
|
||||||
import {PipeTransform, WrappedValue} from 'angular2/src/core/change_detection';
|
|
||||||
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
||||||
|
|
||||||
import {Pipe} from 'angular2/src/core/metadata';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new List or String containing only a subset (slice) of the
|
* Creates a new List or String containing only a subset (slice) of the
|
||||||
* elements.
|
* elements.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import {isString, CONST, isBlank} from 'angular2/src/facade/lang';
|
import {isString, CONST, isBlank} from 'angular2/src/facade/lang';
|
||||||
import {Pipe} from 'angular2/src/core/metadata';
|
import {PipeTransform, WrappedValue, Injectable, Pipe} from 'angular2/core';
|
||||||
import {Injectable} from 'angular2/src/core/di';
|
|
||||||
import {PipeTransform, WrappedValue} from 'angular2/src/core/change_detection';
|
|
||||||
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
import {InvalidPipeArgumentException} from './invalid_pipe_argument_exception';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,8 @@ import {
|
|||||||
|
|
||||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
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';
|
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:angular2/testing_internal.dart';
|
||||||
import 'package:observe/observe.dart' show ObservableList;
|
import 'package:observe/observe.dart' show ObservableList;
|
||||||
import 'package:angular2/core.dart'
|
import 'package:angular2/core.dart' show ChangeDetectorRef;
|
||||||
show ObservableListDiffFactory, ChangeDetectorRef;
|
import 'package:angular2/common.dart' show ObservableListDiffFactory;
|
||||||
|
|
||||||
@proxy
|
@proxy
|
||||||
class SpyChangeDetectorRef extends SpyObject implements ChangeDetectorRef {
|
class SpyChangeDetectorRef extends SpyObject implements ChangeDetectorRef {
|
||||||
|
@ -17,6 +17,8 @@ import {
|
|||||||
|
|
||||||
import {SpyNgControl, SpyValueAccessor} from '../spies';
|
import {SpyNgControl, SpyValueAccessor} from '../spies';
|
||||||
|
|
||||||
|
import {QueryList} from 'angular2/core';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ControlGroup,
|
ControlGroup,
|
||||||
Control,
|
Control,
|
||||||
@ -32,9 +34,8 @@ import {
|
|||||||
DefaultValueAccessor,
|
DefaultValueAccessor,
|
||||||
CheckboxControlValueAccessor,
|
CheckboxControlValueAccessor,
|
||||||
SelectControlValueAccessor,
|
SelectControlValueAccessor,
|
||||||
QueryList,
|
|
||||||
Validator
|
Validator
|
||||||
} from 'angular2/core';
|
} from 'angular2/common';
|
||||||
|
|
||||||
|
|
||||||
import {selectValueAccessor, composeValidators} from 'angular2/src/common/forms/directives/shared';
|
import {selectValueAccessor, composeValidators} from 'angular2/src/common/forms/directives/shared';
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
afterEach,
|
afterEach,
|
||||||
el
|
el
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
import {Control, FormBuilder} from 'angular2/core';
|
import {Control, FormBuilder} from 'angular2/common';
|
||||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
|
@ -19,23 +19,21 @@ import {
|
|||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||||
|
import {Input, Provider, forwardRef} from 'angular2/core';
|
||||||
import {
|
import {
|
||||||
Input,
|
|
||||||
Control,
|
Control,
|
||||||
ControlGroup,
|
ControlGroup,
|
||||||
ControlValueAccessor,
|
ControlValueAccessor,
|
||||||
FORM_DIRECTIVES,
|
FORM_DIRECTIVES,
|
||||||
NG_VALIDATORS,
|
NG_VALIDATORS,
|
||||||
NG_ASYNC_VALIDATORS,
|
NG_ASYNC_VALIDATORS,
|
||||||
Provider,
|
|
||||||
NgControl,
|
NgControl,
|
||||||
NgIf,
|
NgIf,
|
||||||
NgFor,
|
NgFor,
|
||||||
NgForm,
|
NgForm,
|
||||||
Validators,
|
Validators,
|
||||||
forwardRef,
|
|
||||||
Validator
|
Validator
|
||||||
} from 'angular2/core';
|
} from 'angular2/common';
|
||||||
import {By} from 'angular2/platform/browser';
|
import {By} from 'angular2/platform/browser';
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
tick,
|
tick,
|
||||||
inject
|
inject
|
||||||
} from 'angular2/testing_internal';
|
} 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 {IS_DART, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
import {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||||
import {TimerWrapper, ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
|
import {TimerWrapper, ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
tick,
|
tick,
|
||||||
el
|
el
|
||||||
} from 'angular2/testing_internal';
|
} 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 {PromiseWrapper} from 'angular2/src/facade/promise';
|
||||||
import {EventEmitter, ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
import {EventEmitter, ObservableWrapper, TimerWrapper} from 'angular2/src/facade/async';
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
|
@ -14,7 +14,8 @@ import {
|
|||||||
import {SpyChangeDetectorRef} from '../spies';
|
import {SpyChangeDetectorRef} from '../spies';
|
||||||
|
|
||||||
import {isBlank} from 'angular2/src/facade/lang';
|
import {isBlank} from 'angular2/src/facade/lang';
|
||||||
import {AsyncPipe, WrappedValue} from 'angular2/core';
|
import {AsyncPipe} from 'angular2/common';
|
||||||
|
import {WrappedValue} from 'angular2/core';
|
||||||
import {
|
import {
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
ObservableWrapper,
|
ObservableWrapper,
|
||||||
|
@ -10,7 +10,7 @@ import {
|
|||||||
browserDetection
|
browserDetection
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {DatePipe} from 'angular2/core';
|
import {DatePipe} from 'angular2/common';
|
||||||
import {DateWrapper} from 'angular2/src/facade/lang';
|
import {DateWrapper} from 'angular2/src/facade/lang';
|
||||||
import {PipeResolver} from 'angular2/src/core/linker/pipe_resolver';
|
import {PipeResolver} from 'angular2/src/core/linker/pipe_resolver';
|
||||||
|
|
||||||
|
@ -14,7 +14,8 @@ import {
|
|||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
import {Json, RegExp, NumberWrapper, StringWrapper} from 'angular2/src/facade/lang';
|
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() {
|
export function main() {
|
||||||
describe("JsonPipe", () => {
|
describe("JsonPipe", () => {
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
afterEach
|
afterEach
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {LowerCasePipe} from 'angular2/core';
|
import {LowerCasePipe} from 'angular2/common';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe("LowerCasePipe", () => {
|
describe("LowerCasePipe", () => {
|
||||||
|
@ -10,7 +10,7 @@ import {
|
|||||||
browserDetection
|
browserDetection
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {DecimalPipe, PercentPipe, CurrencyPipe} from 'angular2/core';
|
import {DecimalPipe, PercentPipe, CurrencyPipe} from 'angular2/common';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
// TODO(mlaval): enable tests when Intl API is no longer used, see
|
// TODO(mlaval): enable tests when Intl API is no longer used, see
|
||||||
|
@ -13,7 +13,8 @@ import {
|
|||||||
AsyncTestCompleter
|
AsyncTestCompleter
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {SlicePipe, Component} from 'angular2/core';
|
import {Component} from 'angular2/core';
|
||||||
|
import {SlicePipe} from 'angular2/common';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe("SlicePipe", () => {
|
describe("SlicePipe", () => {
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
afterEach
|
afterEach
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {UpperCasePipe} from 'angular2/core';
|
import {UpperCasePipe} from 'angular2/common';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe("UpperCasePipe", () => {
|
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 {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 {Scope} from 'angular2/core';
|
||||||
import {By} from 'angular2/platform/browser';
|
import {By} from 'angular2/platform/browser';
|
||||||
|
|
||||||
|
@ -18,11 +18,11 @@ import {
|
|||||||
Component,
|
Component,
|
||||||
Directive,
|
Directive,
|
||||||
Inject,
|
Inject,
|
||||||
NgFor,
|
|
||||||
Query,
|
Query,
|
||||||
QueryList,
|
QueryList,
|
||||||
View
|
View
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
import {NgFor} from 'angular2/common';
|
||||||
import {Type} from 'angular2/src/facade/lang';
|
import {Type} from 'angular2/src/facade/lang';
|
||||||
import {asNativeElements} from 'angular2/core';
|
import {asNativeElements} from 'angular2/core';
|
||||||
|
|
||||||
|
@ -17,7 +17,8 @@ import {
|
|||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
|
|
||||||
import {OnDestroy} from 'angular2/lifecycle_hooks';
|
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 {By} from 'angular2/platform/browser';
|
||||||
import {Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
import {Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
||||||
import {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component_loader';
|
import {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||||
|
@ -54,11 +54,11 @@ import {
|
|||||||
Inject,
|
Inject,
|
||||||
Host,
|
Host,
|
||||||
SkipSelf,
|
SkipSelf,
|
||||||
SkipSelfMetadata,
|
SkipSelfMetadata
|
||||||
NgIf,
|
|
||||||
NgFor
|
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
|
||||||
|
import {NgIf, NgFor} from 'angular2/common';
|
||||||
|
|
||||||
import {AsyncPipe} from 'angular2/common';
|
import {AsyncPipe} from 'angular2/common';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -19,8 +19,6 @@ import {
|
|||||||
Component,
|
Component,
|
||||||
Directive,
|
Directive,
|
||||||
Injectable,
|
Injectable,
|
||||||
NgIf,
|
|
||||||
NgFor,
|
|
||||||
Optional,
|
Optional,
|
||||||
TemplateRef,
|
TemplateRef,
|
||||||
Query,
|
Query,
|
||||||
@ -36,7 +34,7 @@ import {
|
|||||||
AfterContentChecked,
|
AfterContentChecked,
|
||||||
AfterViewChecked
|
AfterViewChecked
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
import {NgIf, NgFor} from 'angular2/common';
|
||||||
import {asNativeElements} from 'angular2/core';
|
import {asNativeElements} from 'angular2/core';
|
||||||
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
||||||
|
|
||||||
|
@ -14,7 +14,8 @@ import {
|
|||||||
TestComponentBuilder
|
TestComponentBuilder
|
||||||
} from 'angular2/testing_internal';
|
} 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';
|
import {Directive, Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
||||||
|
|
||||||
@Component({selector: 'child-comp'})
|
@Component({selector: 'child-comp'})
|
||||||
|
@ -14,7 +14,8 @@ import {
|
|||||||
TestComponentBuilder
|
TestComponentBuilder
|
||||||
} from 'angular2/testing';
|
} 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 {Directive, Component, View, ViewMetadata} from 'angular2/angular2';
|
||||||
import {XHR} from 'angular2/src/compiler/xhr';
|
import {XHR} from 'angular2/src/compiler/xhr';
|
||||||
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
||||||
|
@ -21,9 +21,9 @@ import {
|
|||||||
Component,
|
Component,
|
||||||
View,
|
View,
|
||||||
Injectable,
|
Injectable,
|
||||||
ElementRef,
|
ElementRef
|
||||||
NgIf
|
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
import {NgIf} from 'angular2/common';
|
||||||
import {WebWorkerRenderer} from "angular2/src/web_workers/worker/renderer";
|
import {WebWorkerRenderer} from "angular2/src/web_workers/worker/renderer";
|
||||||
import {
|
import {
|
||||||
ClientMessageBrokerFactory,
|
ClientMessageBrokerFactory,
|
||||||
|
@ -14,7 +14,6 @@ import {
|
|||||||
bind,
|
bind,
|
||||||
provide,
|
provide,
|
||||||
Provider,
|
Provider,
|
||||||
NgIf,
|
|
||||||
ViewMetadata
|
ViewMetadata
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {
|
import {Component, Directive, DynamicComponentLoader, ElementRef, View} from 'angular2/core';
|
||||||
Component,
|
import {NgIf, NgFor} from 'angular2/common';
|
||||||
Directive,
|
|
||||||
DynamicComponentLoader,
|
|
||||||
ElementRef,
|
|
||||||
View,
|
|
||||||
NgIf,
|
|
||||||
NgFor
|
|
||||||
} from 'angular2/core';
|
|
||||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
import {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
||||||
|
@ -8,17 +8,8 @@ import {
|
|||||||
windowProfileEnd
|
windowProfileEnd
|
||||||
} from 'angular2/src/testing/benchmark_util';
|
} from 'angular2/src/testing/benchmark_util';
|
||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {
|
import {Component, Directive, View, bind, provide} from 'angular2/core';
|
||||||
Component,
|
import {NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/common';
|
||||||
Directive,
|
|
||||||
View,
|
|
||||||
bind,
|
|
||||||
provide,
|
|
||||||
NgFor,
|
|
||||||
NgSwitch,
|
|
||||||
NgSwitchWhen,
|
|
||||||
NgSwitchDefault
|
|
||||||
} from 'angular2/core';
|
|
||||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||||
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
|
||||||
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
|
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 {getIntParameter, bindAction} from 'angular2/src/testing/benchmark_util';
|
||||||
import {TimerWrapper} from 'angular2/src/facade/async';
|
import {TimerWrapper} from 'angular2/src/facade/async';
|
||||||
import {ScrollAreaComponent} from './scroll_area';
|
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 {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||||
import {document} from 'angular2/src/facade/browser';
|
import {document} from 'angular2/src/facade/browser';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {ListWrapper, Map} from 'angular2/src/facade/collection';
|
import {ListWrapper, Map} from 'angular2/src/facade/collection';
|
||||||
import {Company, Opportunity, Offering, Account, CustomDate, STATUS_LIST} from './common';
|
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';
|
import {Component, Directive, View} from 'angular2/angular2';
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import {
|
|||||||
} from './common';
|
} from './common';
|
||||||
import {generateOfferings} from './random_data';
|
import {generateOfferings} from './random_data';
|
||||||
import {ScrollItemComponent} from './scroll_item';
|
import {ScrollItemComponent} from './scroll_item';
|
||||||
import {NgFor} from 'angular2/core';
|
import {NgFor} from 'angular2/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'scroll-area',
|
selector: 'scroll-area',
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
|
import {NgIf} from 'angular2/common';
|
||||||
import {
|
import {
|
||||||
Compiler,
|
Compiler,
|
||||||
Component,
|
Component,
|
||||||
@ -7,8 +8,7 @@ import {
|
|||||||
ViewContainerRef,
|
ViewContainerRef,
|
||||||
bind,
|
bind,
|
||||||
provide,
|
provide,
|
||||||
Provider,
|
Provider
|
||||||
NgIf
|
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
import {ComponentRef_} from 'angular2/src/core/linker/dynamic_component_loader';
|
import {ComponentRef_} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||||
|
@ -7,9 +7,9 @@ import {
|
|||||||
ViewContainerRef,
|
ViewContainerRef,
|
||||||
bind,
|
bind,
|
||||||
provide,
|
provide,
|
||||||
Provider,
|
Provider
|
||||||
NgIf
|
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
import {NgIf} from 'angular2/common';
|
||||||
|
|
||||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {NgIf, Component, View} from 'angular2/core';
|
import {Component, View} from 'angular2/core';
|
||||||
|
import {NgIf} from 'angular2/common';
|
||||||
import {TimerWrapper} from 'angular2/src/facade/async';
|
import {TimerWrapper} from 'angular2/src/facade/async';
|
||||||
|
|
||||||
@Component({selector: 'async-app'})
|
@Component({selector: 'async-app'})
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {bind, provide, Component, NgFor, View, ViewEncapsulation} from 'angular2/core';
|
import {bind, provide, Component, View, ViewEncapsulation} from 'angular2/core';
|
||||||
|
import {NgFor} from 'angular2/common';
|
||||||
import {UrlResolver} from 'angular2/compiler';
|
import {UrlResolver} from 'angular2/compiler';
|
||||||
import {MdButton, MdAnchor} from 'angular2_material/src/components/button/button';
|
import {MdButton, MdAnchor} from 'angular2_material/src/components/button/button';
|
||||||
import {commonDemoSetup, DemoUrlResolver} from '../demo_common';
|
import {commonDemoSetup, DemoUrlResolver} from '../demo_common';
|
||||||
|
@ -7,12 +7,9 @@ import {
|
|||||||
NgFormModel,
|
NgFormModel,
|
||||||
FormBuilder,
|
FormBuilder,
|
||||||
NgIf,
|
NgIf,
|
||||||
NgFor,
|
NgFor
|
||||||
Component,
|
} from 'angular2/common';
|
||||||
Directive,
|
import {Component, Directive, View, Host} from 'angular2/core';
|
||||||
View,
|
|
||||||
Host
|
|
||||||
} from 'angular2/core';
|
|
||||||
|
|
||||||
import {RegExpWrapper, print, isPresent} from 'angular2/src/facade/lang';
|
import {RegExpWrapper, print, isPresent} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ library benchmarks.src.naive_infinite_scroll.app;
|
|||||||
import "package:angular2/src/facade/collection.dart" show List, ListWrapper;
|
import "package:angular2/src/facade/collection.dart" show List, ListWrapper;
|
||||||
import "scroll_area.dart" show ScrollAreaComponent;
|
import "scroll_area.dart" show ScrollAreaComponent;
|
||||||
import "package:angular2/angular2.dart" show Component, Directive, View, IterableDiffers, SkipSelf, Binding;
|
import "package:angular2/angular2.dart" show Component, Directive, View, IterableDiffers, SkipSelf, Binding;
|
||||||
import "package:angular2/core.dart" show ObservableListDiffFactory, NgIf, NgFor;
|
import "package:angular2/common.dart" show ObservableListDiffFactory, NgIf, NgFor;
|
||||||
import 'package:observe/observe.dart' show ObservableList;
|
import 'package:observe/observe.dart' show ObservableList;
|
||||||
|
|
||||||
createDiffers(IterableDiffers parent) {
|
createDiffers(IterableDiffers parent) {
|
||||||
|
@ -4,7 +4,7 @@ import "package:angular2/src/facade/collection.dart"
|
|||||||
show List, ListWrapper, Map;
|
show List, ListWrapper, Map;
|
||||||
import "common.dart"
|
import "common.dart"
|
||||||
show Company, Opportunity, Offering, Account, CustomDate, STATUS_LIST;
|
show Company, Opportunity, Offering, Account, CustomDate, STATUS_LIST;
|
||||||
import "package:angular2/core.dart" show NgFor;
|
import "package:angular2/common.dart" show NgFor;
|
||||||
import "package:angular2/angular2.dart" show Component, Directive, View, ChangeDetectionStrategy;
|
import "package:angular2/angular2.dart" show Component, Directive, View, ChangeDetectionStrategy;
|
||||||
|
|
||||||
class HasStyle {
|
class HasStyle {
|
||||||
|
@ -14,7 +14,7 @@ import "common.dart"
|
|||||||
HEIGHT;
|
HEIGHT;
|
||||||
import "random_data.dart" show generateOfferings;
|
import "random_data.dart" show generateOfferings;
|
||||||
import "scroll_item.dart" show ScrollItemComponent;
|
import "scroll_item.dart" show ScrollItemComponent;
|
||||||
import "package:angular2/core.dart" show NgFor;
|
import "package:angular2/common.dart" show NgFor;
|
||||||
|
|
||||||
@Component(selector: "scroll-area", changeDetection: ChangeDetectionStrategy.OnPushObserve)
|
@Component(selector: "scroll-area", changeDetection: ChangeDetectionStrategy.OnPushObserve)
|
||||||
@View(directives: const [ScrollItemComponent, NgFor], template: '''
|
@View(directives: const [ScrollItemComponent, NgFor], template: '''
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {
|
import {
|
||||||
NgIf,
|
|
||||||
NgFor,
|
|
||||||
Component,
|
Component,
|
||||||
Directive,
|
Directive,
|
||||||
Host,
|
Host,
|
||||||
forwardRef,
|
forwardRef,
|
||||||
Provider,
|
Provider,
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
FORM_DIRECTIVES,
|
|
||||||
Injectable,
|
Injectable,
|
||||||
Input,
|
Input,
|
||||||
Output
|
Output
|
||||||
} from 'angular2/core';
|
} from 'angular2/core';
|
||||||
|
import {NgIf, NgFor, FORM_DIRECTIVES} from 'angular2/common';
|
||||||
|
|
||||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
|
@ -1,16 +1,6 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {
|
import {Component, Directive, View, Host, forwardRef, Provider, Injectable} from 'angular2/core';
|
||||||
NgIf,
|
import {NgIf, NgFor, FORM_DIRECTIVES} from 'angular2/common';
|
||||||
NgFor,
|
|
||||||
Component,
|
|
||||||
Directive,
|
|
||||||
View,
|
|
||||||
Host,
|
|
||||||
forwardRef,
|
|
||||||
Provider,
|
|
||||||
FORM_DIRECTIVES,
|
|
||||||
Injectable
|
|
||||||
} from 'angular2/core';
|
|
||||||
|
|
||||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
|
@ -1,20 +1,15 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
|
import {Component, Directive, View, Host, forwardRef, Provider} from 'angular2/core';
|
||||||
import {
|
import {
|
||||||
ControlGroup,
|
ControlGroup,
|
||||||
NgIf,
|
NgIf,
|
||||||
NgFor,
|
NgFor,
|
||||||
Component,
|
|
||||||
Directive,
|
|
||||||
View,
|
|
||||||
Host,
|
|
||||||
NG_VALIDATORS,
|
NG_VALIDATORS,
|
||||||
forwardRef,
|
|
||||||
Provider,
|
|
||||||
FORM_DIRECTIVES,
|
FORM_DIRECTIVES,
|
||||||
NgControl,
|
NgControl,
|
||||||
Validators,
|
Validators,
|
||||||
NgForm
|
NgForm
|
||||||
} from 'angular2/core';
|
} from 'angular2/common';
|
||||||
|
|
||||||
import {RegExpWrapper, print, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
import {RegExpWrapper, print, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {NgFor, Component, View} from 'angular2/core';
|
import {Component, View} from 'angular2/core';
|
||||||
|
import {NgFor} from 'angular2/common';
|
||||||
import {Store, Todo, TodoFactory} from './services/TodoStore';
|
import {Store, Todo, TodoFactory} from './services/TodoStore';
|
||||||
|
|
||||||
@Component({selector: 'todo-app', viewProviders: [Store, TodoFactory]})
|
@Component({selector: 'todo-app', viewProviders: [Store, TodoFactory]})
|
||||||
|
@ -13,6 +13,7 @@ const _ON_CHANGE_INTERFACES = const [
|
|||||||
const ClassDescriptor('OnChanges', 'package:angular2/angular2.dart'),
|
const ClassDescriptor('OnChanges', 'package:angular2/angular2.dart'),
|
||||||
const ClassDescriptor('OnChanges', 'package:angular2/lifecycle_hooks.dart'),
|
const ClassDescriptor('OnChanges', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor('OnChanges', 'package:angular2/src/core/linker.dart'),
|
const ClassDescriptor('OnChanges', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor('OnChanges', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'OnChanges', 'package:angular2/src/core/linker/interfaces.dart'),
|
'OnChanges', 'package:angular2/src/core/linker/interfaces.dart'),
|
||||||
];
|
];
|
||||||
@ -20,6 +21,7 @@ const _ON_DESTROY_INTERFACES = const [
|
|||||||
const ClassDescriptor('OnDestroy', 'package:angular2/angular2.dart'),
|
const ClassDescriptor('OnDestroy', 'package:angular2/angular2.dart'),
|
||||||
const ClassDescriptor('OnDestroy', 'package:angular2/lifecycle_hooks.dart'),
|
const ClassDescriptor('OnDestroy', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor('OnDestroy', 'package:angular2/src/core/linker.dart'),
|
const ClassDescriptor('OnDestroy', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor('OnDestroy', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'OnDestroy', 'package:angular2/src/core/linker/interfaces.dart'),
|
'OnDestroy', 'package:angular2/src/core/linker/interfaces.dart'),
|
||||||
];
|
];
|
||||||
@ -27,6 +29,7 @@ const _DO_CHECK_INTERFACES = const [
|
|||||||
const ClassDescriptor('DoCheck', 'package:angular2/angular2.dart'),
|
const ClassDescriptor('DoCheck', 'package:angular2/angular2.dart'),
|
||||||
const ClassDescriptor('DoCheck', 'package:angular2/lifecycle_hooks.dart'),
|
const ClassDescriptor('DoCheck', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor('DoCheck', 'package:angular2/src/core/linker.dart'),
|
const ClassDescriptor('DoCheck', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor('DoCheck', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'DoCheck', 'package:angular2/src/core/linker/interfaces.dart'),
|
'DoCheck', 'package:angular2/src/core/linker/interfaces.dart'),
|
||||||
];
|
];
|
||||||
@ -34,6 +37,7 @@ const _ON_INIT_INTERFACES = const [
|
|||||||
const ClassDescriptor('OnInit', 'package:angular2/angular2.dart'),
|
const ClassDescriptor('OnInit', 'package:angular2/angular2.dart'),
|
||||||
const ClassDescriptor('OnInit', 'package:angular2/lifecycle_hooks.dart'),
|
const ClassDescriptor('OnInit', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor('OnInit', 'package:angular2/src/core/linker.dart'),
|
const ClassDescriptor('OnInit', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor('OnInit', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'OnInit', 'package:angular2/src/core/linker/interfaces.dart'),
|
'OnInit', 'package:angular2/src/core/linker/interfaces.dart'),
|
||||||
];
|
];
|
||||||
@ -43,6 +47,8 @@ const _ON_AFTER_CONTENT_INIT_INTERFACES = const [
|
|||||||
'AfterContentInit', 'package:angular2/lifecycle_hooks.dart'),
|
'AfterContentInit', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterContentInit', 'package:angular2/src/core/linker.dart'),
|
'AfterContentInit', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor(
|
||||||
|
'AfterContentInit', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterContentInit', 'package:angular2/src/core/linker/interfaces.dart')
|
'AfterContentInit', 'package:angular2/src/core/linker/interfaces.dart')
|
||||||
];
|
];
|
||||||
@ -53,6 +59,8 @@ const _ON_AFTER_CONTENT_CHECKED_INTERFACES = const [
|
|||||||
'AfterContentChecked', 'package:angular2/lifecycle_hooks.dart'),
|
'AfterContentChecked', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterContentChecked', 'package:angular2/src/core/linker.dart'),
|
'AfterContentChecked', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor(
|
||||||
|
'AfterContentChecked', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterContentChecked', 'package:angular2/src/core/linker/interfaces.dart')
|
'AfterContentChecked', 'package:angular2/src/core/linker/interfaces.dart')
|
||||||
];
|
];
|
||||||
@ -62,6 +70,8 @@ const _ON_AFTER_VIEW_INIT_INTERFACES = const [
|
|||||||
'AfterViewInit', 'package:angular2/lifecycle_hooks.dart'),
|
'AfterViewInit', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterViewInit', 'package:angular2/src/core/linker.dart'),
|
'AfterViewInit', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor(
|
||||||
|
'AfterViewInit', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterViewInit', 'package:angular2/src/core/linker/interfaces.dart')
|
'AfterViewInit', 'package:angular2/src/core/linker/interfaces.dart')
|
||||||
];
|
];
|
||||||
@ -71,6 +81,8 @@ const _ON_AFTER_VIEW_CHECKED_INTERFACES = const [
|
|||||||
'AfterViewChecked', 'package:angular2/lifecycle_hooks.dart'),
|
'AfterViewChecked', 'package:angular2/lifecycle_hooks.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterViewChecked', 'package:angular2/src/core/linker.dart'),
|
'AfterViewChecked', 'package:angular2/src/core/linker.dart'),
|
||||||
|
const ClassDescriptor(
|
||||||
|
'AfterViewChecked', 'package:angular2/core.dart'),
|
||||||
const ClassDescriptor(
|
const ClassDescriptor(
|
||||||
'AfterViewChecked', 'package:angular2/src/core/linker/interfaces.dart')
|
'AfterViewChecked', 'package:angular2/src/core/linker/interfaces.dart')
|
||||||
];
|
];
|
||||||
|
@ -18,12 +18,7 @@ class CheckImports implements DiffingBroccoliPlugin {
|
|||||||
"angular2/src/facade",
|
"angular2/src/facade",
|
||||||
],
|
],
|
||||||
"angular2/src/facade": ["angular2/src/facade", "@reactivex/rxjs"],
|
"angular2/src/facade": ["angular2/src/facade", "@reactivex/rxjs"],
|
||||||
// enable these
|
"angular2/src/common": ["angular2/core", "angular2/src/facade", "angular2/src/common"]
|
||||||
//"angular2/src/common": [
|
|
||||||
// "angular2/core",
|
|
||||||
// "angular2/src/facade",
|
|
||||||
// "angular2/src/common"
|
|
||||||
//],
|
|
||||||
//"angular2/src/render": [
|
//"angular2/src/render": [
|
||||||
// "angular2/animate",
|
// "angular2/animate",
|
||||||
// "angular2/core",
|
// "angular2/core",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user