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.
		
			
				
	
	
		
			11 lines
		
	
	
		
			299 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			299 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
library web_foo;
 | 
						|
 | 
						|
import 'package:angular2/bootstrap.dart';
 | 
						|
import 'package:angular2/src/reflection/reflection.dart';
 | 
						|
import 'package:angular2/src/reflection/reflection_capabilities.dart';
 | 
						|
 | 
						|
void main() {
 | 
						|
  reflector.reflectionCapabilities = new ReflectionCapabilities();
 | 
						|
  bootstrap(MyComponent);
 | 
						|
}
 |