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

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library test.src.transform.template_compiler.ng_for_files.hello.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'goodbye.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -4,7 +4,7 @@ import 'hello.dart';
import 'goodbye.dart' as prefix;
import 'goodbye.ng_deps.dart' as i0;
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library angular2.test.transform.template_compiler.with_prefix_files.ng2_prefix.n
import 'ng2_prefix.dart';
import 'package:angular2/angular2.dart' as ng2
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'goodbye.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -4,7 +4,7 @@ import 'hello.dart';
import 'goodbye.dart' as prefix;
import 'goodbye.ng_deps.dart' as i0;
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {

View File

@ -2,7 +2,7 @@ library angular2.test.transform.template_compiler.with_prefix_files.ng2_prefix.n
import 'ng2_prefix.dart';
import 'package:angular2/angular2.dart' as ng2
show bootstrap, Component, Directive, View, NgElement;
show Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {