feat(bootstrap): remove the need for explicit reflection setup in bootstrap code
BREAKING CHANGES: Dart applications and TypeScript applications meant to transpile to Dart must now import `package:angular2/bootstrap.dart` instead of `package:angular2/angular2.dart` in their bootstrap code. `package:angular2/angular2.dart` no longer export the bootstrap function. The transformer rewrites imports of `bootstrap.dart` and calls to `bootstrap` to `bootstrap_static.dart` and `bootstrapStatic` respectively.
This commit is contained in:
43
modules/angular2/angular2_exports.ts
Normal file
43
modules/angular2/angular2_exports.ts
Normal file
@ -0,0 +1,43 @@
|
||||
export * from 'angular2/annotations';
|
||||
export * from 'angular2/core';
|
||||
|
||||
export {
|
||||
DehydratedException,
|
||||
ExpressionChangedAfterItHasBeenChecked,
|
||||
ChangeDetectionError,
|
||||
|
||||
ON_PUSH,
|
||||
DEFAULT,
|
||||
|
||||
ChangeDetectorRef,
|
||||
|
||||
Pipes,
|
||||
WrappedValue,
|
||||
Pipe,
|
||||
PipeFactory,
|
||||
NullPipe,
|
||||
NullPipeFactory,
|
||||
defaultPipes,
|
||||
BasePipe,
|
||||
|
||||
Locals
|
||||
} from './change_detection';
|
||||
|
||||
export * from './di';
|
||||
export * from './forms';
|
||||
export * from './directives';
|
||||
export * from './http';
|
||||
export {
|
||||
RenderEventDispatcher,
|
||||
Renderer,
|
||||
RenderElementRef,
|
||||
RenderViewRef,
|
||||
RenderProtoViewRef,
|
||||
RenderFragmentRef,
|
||||
RenderViewWithFragments
|
||||
} from 'angular2/src/render/api';
|
||||
export {
|
||||
DomRenderer,
|
||||
DOCUMENT_TOKEN,
|
||||
DOM_REFLECT_PROPERTIES_AS_ATTRIBUTES
|
||||
} from 'angular2/src/render/dom/dom_renderer';
|
Reference in New Issue
Block a user