2015-09-03 22:01:36 -07:00
|
|
|
library angular2.src.core.bootstrap;
|
|
|
|
|
|
|
|
import 'dart:async';
|
|
|
|
|
2015-09-02 15:19:26 -07:00
|
|
|
import 'package:angular2/src/core/compiler/dynamic_component_loader.dart' show ComponentRef;
|
2015-09-03 22:01:36 -07:00
|
|
|
import 'package:angular2/src/core/reflection/reflection.dart' show reflector;
|
|
|
|
import 'package:angular2/src/core/reflection/reflection_capabilities.dart'
|
|
|
|
show ReflectionCapabilities;
|
|
|
|
import 'application_common.dart';
|
|
|
|
|
|
|
|
/// Starts an application from a root component. This implementation uses
|
|
|
|
/// mirrors. Angular 2 transformer automatically replaces this method with a
|
|
|
|
/// static implementation (see `application_static.dart`) that does not use
|
|
|
|
/// mirrors and produces a faster and more compact JS code.
|
|
|
|
///
|
|
|
|
/// See [commonBootstrap] for detailed documentation.
|
2015-09-02 15:19:26 -07:00
|
|
|
Future<ComponentRef> bootstrap(Type appComponentType,
|
2015-09-03 22:01:36 -07:00
|
|
|
[List componentInjectableBindings]) {
|
|
|
|
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
|
|
|
return commonBootstrap(appComponentType, componentInjectableBindings);
|
|
|
|
}
|