This change moves many APIs to the angular2/core export.
This change also automatically adds FORM_BINDINGS in
the application root injector.
BREAKING CHANGE:
Many dependencies that were previously exported from specific
APIs are now exported from angular2/core. Affected exports, which
should now be included from angular2/core include:
angular2/forms
angular2/di
angular2/directives
angular2/change_detection
angular2/bootstrap (except for dart users)
angular2/render
angular2/metadata
angular2/debug
angular2/pipes
Closes #3977
17 lines
498 B
Dart
17 lines
498 B
Dart
library angular2.src.core.application_static;
|
|
|
|
import 'dart:async';
|
|
import 'application_common.dart';
|
|
import 'application_ref.dart';
|
|
|
|
/// Starts an application from a root component.
|
|
///
|
|
/// See [commonBootstrap] for detailed documentation.
|
|
Future<ApplicationRef> bootstrapStatic(Type appComponentType,
|
|
[List componentInjectableBindings, void initReflector()]) {
|
|
if (initReflector != null) {
|
|
initReflector();
|
|
}
|
|
return commonBootstrap(appComponentType, componentInjectableBindings);
|
|
}
|