BREAKING CHANGE: - Platform pipes can only contain types and arrays of types, but no bindings any more. - When using transformers, platform pipes need to be specified explicitly in the pubspec.yaml via the new config option `platform_pipes`. - `Compiler.compileInHost` now returns a `HostViewFactoryRef` - Component view is not yet created when component constructor is called. -> use `onInit` lifecycle callback to access the view of a component - `ViewRef#setLocal` has been moved to new type `EmbeddedViewRef` - `internalView` is gone, use `EmbeddedViewRef.rootNodes` to access the root nodes of an embedded view - `renderer.setElementProperty`, `..setElementStyle`, `..setElementAttribute` now take a native element instead of an ElementRef - `Renderer` interface now operates on plain native nodes, instead of `RenderElementRef`s or `RenderViewRef`s Closes #5993
16 lines
650 B
TypeScript
16 lines
650 B
TypeScript
export const NG2_APP_VIEW_MANAGER = 'ng2.AppViewManager';
|
|
export const NG2_COMPILER = 'ng2.Compiler';
|
|
export const NG2_INJECTOR = 'ng2.Injector';
|
|
export const NG2_HOST_VIEW_FACTORY_REF_MAP = 'ng2.HostViewFactoryRefMap';
|
|
export const NG2_ZONE = 'ng2.NgZone';
|
|
|
|
export const NG1_CONTROLLER = '$controller';
|
|
export const NG1_SCOPE = '$scope';
|
|
export const NG1_ROOT_SCOPE = '$rootScope';
|
|
export const NG1_COMPILE = '$compile';
|
|
export const NG1_HTTP_BACKEND = '$httpBackend';
|
|
export const NG1_INJECTOR = '$injector';
|
|
export const NG1_PARSE = '$parse';
|
|
export const NG1_TEMPLATE_CACHE = '$templateCache';
|
|
export const REQUIRE_INJECTOR = '^' + NG2_INJECTOR;
|