cleanup: removes the render and lifecycle_hooks modules
BREAKING CHANGE Before import {Renderer} from 'angular2/render'; After import {Renderer} form 'angular2/core'; Closes #5367
This commit is contained in:
parent
ae58934d52
commit
125fa3885e
|
@ -9,7 +9,6 @@ export 'package:angular2/core.dart'
|
|||
hide forwardRef, resolveForwardRef, ForwardRefFn;
|
||||
export 'package:angular2/common.dart';
|
||||
export 'package:angular2/profile.dart';
|
||||
export 'package:angular2/lifecycle_hooks.dart';
|
||||
export 'package:angular2/src/core/application_tokens.dart'
|
||||
hide APP_COMPONENT_REF_PROMISE, APP_ID_RANDOM_PROVIDER;
|
||||
export 'package:angular2/src/platform/dom/dom_tokens.dart';
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
export * from './common';
|
||||
export * from './core';
|
||||
export * from './profile';
|
||||
export * from './lifecycle_hooks';
|
||||
export * from './platform/browser';
|
||||
export * from './src/platform/dom/dom_adapter';
|
||||
export * from './upgrade';
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Defines interfaces to be implemented by directives when they need to hook into the change
|
||||
* detection mechanism.
|
||||
*/
|
||||
|
||||
export {
|
||||
AfterContentInit,
|
||||
AfterContentChecked,
|
||||
AfterViewInit,
|
||||
AfterViewChecked,
|
||||
OnChanges,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
DoCheck
|
||||
} from './src/core/linker/interfaces';
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* @deprecated import angular2/render/dom instead
|
||||
*/
|
||||
export * from './src/core/render';
|
|
@ -2,20 +2,20 @@ import {CONST_EXPR} from 'angular2/src/facade/lang';
|
|||
import {provide, Provider, Injector, OpaqueToken} from 'angular2/src/core/di';
|
||||
|
||||
import {
|
||||
PLATFORM_INITIALIZER,
|
||||
PLATFORM_DIRECTIVES,
|
||||
PLATFORM_PIPES,
|
||||
ComponentRef,
|
||||
platform,
|
||||
ExceptionHandler,
|
||||
Reflector,
|
||||
Renderer,
|
||||
reflector,
|
||||
APPLICATION_COMMON_PROVIDERS,
|
||||
PLATFORM_COMMON_PROVIDERS,
|
||||
EVENT_MANAGER_PLUGINS,
|
||||
PLATFORM_INITIALIZER
|
||||
EVENT_MANAGER_PLUGINS
|
||||
} from "angular2/core";
|
||||
import {COMMON_DIRECTIVES, COMMON_PIPES, FORM_PROVIDERS} from "angular2/common";
|
||||
import {Renderer} from 'angular2/render';
|
||||
import {Testability} from 'angular2/src/core/testability/testability';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
|
||||
|
|
|
@ -21,7 +21,7 @@ import {
|
|||
AfterContentChecked,
|
||||
AfterViewInit,
|
||||
AfterViewChecked
|
||||
} from 'angular2/lifecycle_hooks';
|
||||
} from 'angular2/core';
|
||||
import {Directive, Component, View, ViewMetadata} from 'angular2/src/core/metadata';
|
||||
|
||||
export function main() {
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
ComponentFixture
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {OnDestroy} from 'angular2/lifecycle_hooks';
|
||||
import {OnDestroy} from 'angular2/core';
|
||||
import {Injector, inspectElement} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {By} from 'angular2/platform/browser';
|
||||
|
|
|
@ -37,7 +37,7 @@ import {
|
|||
ComponentMetadata,
|
||||
DirectiveMetadata
|
||||
} from 'angular2/src/core/metadata';
|
||||
import {OnDestroy} from 'angular2/lifecycle_hooks';
|
||||
import {OnDestroy} from 'angular2/core';
|
||||
import {provide, Injector, Provider, Optional, Inject, Injectable, Self, SkipSelf, InjectMetadata, Host, HostMetadata, SkipSelfMetadata} from 'angular2/core';
|
||||
import {ViewContainerRef, ViewContainerRef_} from 'angular2/src/core/linker/view_container_ref';
|
||||
import {TemplateRef, TemplateRef_} from 'angular2/src/core/linker/template_ref';
|
||||
|
|
|
@ -42,7 +42,7 @@ import {
|
|||
import {DirectiveResolver} from 'angular2/src/core/linker/directive_resolver';
|
||||
import {Component} from 'angular2/src/core/metadata';
|
||||
import {AppViewManagerUtils} from 'angular2/src/core/linker/view_manager_utils';
|
||||
import {RenderViewWithFragments} from 'angular2/render';
|
||||
import {RenderViewWithFragments} from 'angular2/core';
|
||||
|
||||
export function main() {
|
||||
// TODO(tbosch): add more tests here!
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export * from '../lifecycle_hooks';
|
||||
export * from '../src/core/linker/interfaces';
|
||||
export * from '../src/core/metadata';
|
||||
export * from '../src/core/util';
|
||||
export * from '../src/core/di';
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {ElementRef, Component, Directive, Injectable} from 'angular2/core';
|
||||
import {Renderer} from 'angular2/render';
|
||||
import {Renderer, ElementRef, Component, Directive, Injectable} from 'angular2/core';
|
||||
|
||||
export function main() {
|
||||
// Bootstrapping only requires specifying a root component.
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import {ElementRef, Component, Directive, View, Injectable} from 'angular2/core';
|
||||
import {Renderer} from 'angular2/render';
|
||||
import {Renderer, ElementRef, Component, Directive, View, Injectable} from 'angular2/core';
|
||||
import {StringWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
// A service available to the Injector, used by the HelloCmp component.
|
||||
|
|
Loading…
Reference in New Issue