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:
yjbanov
2015-07-22 10:18:04 -07:00
parent 55e8dca8de
commit 3531bb7118
119 changed files with 896 additions and 827 deletions

View File

@ -1,6 +1,12 @@
/**
* The `angular2` is the single place to import all of the individual types.
*/
export {commonBootstrap as bootstrap} from 'angular2/src/core/application_common';
// TODO(someone familiar with systemjs): the exports below are copied from
// angular2_exports.ts. Re-exporting from angular2_exports.ts causes systemjs
// to resolve imports very very very slowly. See also a similar notice in
// bootstrap.ts
export * from 'angular2/annotations';
export * from 'angular2/core';
@ -28,34 +34,7 @@ export {
export * from './di';
export * from './forms';
export * from './directives';
export {
AbstractControl,
AbstractControlDirective,
Control,
ControlGroup,
ControlArray,
NgControlName,
NgFormControl,
NgModel,
NgControl,
NgControlGroup,
NgFormModel,
NgForm,
ControlValueAccessor,
DefaultValueAccessor,
CheckboxControlValueAccessor,
SelectControlValueAccessor,
formDirectives,
Validators,
NgValidator,
NgRequiredValidator,
FormBuilder,
formInjectables
} from './forms';
export * from './http';
export {
RenderEventDispatcher,