2015-09-03 22:01:36 -07:00
|
|
|
library angular2.src.core.application_static;
|
2015-07-22 10:18:04 -07:00
|
|
|
|
|
|
|
|
import 'dart:async';
|
|
|
|
|
import 'application_common.dart';
|
2015-09-02 15:19:26 -07:00
|
|
|
import 'package:angular2/src/core/compiler/dynamic_component_loader.dart' show ComponentRef;
|
2015-07-22 10:18:04 -07:00
|
|
|
|
|
|
|
|
/// Starts an application from a root component.
|
|
|
|
|
///
|
|
|
|
|
/// See [commonBootstrap] for detailed documentation.
|
2015-09-02 15:19:26 -07:00
|
|
|
Future<ComponentRef> bootstrapStatic(Type appComponentType,
|
2015-07-30 08:47:23 -07:00
|
|
|
[List componentInjectableBindings, void initReflector()]) {
|
|
|
|
|
if (initReflector != null) {
|
|
|
|
|
initReflector();
|
|
|
|
|
}
|
2015-07-22 17:15:38 -07:00
|
|
|
return commonBootstrap(appComponentType, componentInjectableBindings);
|
2015-07-22 10:18:04 -07:00
|
|
|
}
|