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
48 lines
1009 B
TypeScript
48 lines
1009 B
TypeScript
/**
|
|
* @module
|
|
* @description
|
|
* The `di` module provides dependency injection container services.
|
|
*/
|
|
|
|
export {
|
|
InjectMetadata,
|
|
OptionalMetadata,
|
|
InjectableMetadata,
|
|
SelfMetadata,
|
|
HostMetadata,
|
|
SkipSelfMetadata,
|
|
DependencyMetadata
|
|
} from './di/metadata';
|
|
|
|
// we have to reexport * because Dart and TS export two different sets of types
|
|
export * from './di/decorators';
|
|
|
|
export {forwardRef, resolveForwardRef, ForwardRefFn} from './di/forward_ref';
|
|
export {
|
|
Injector,
|
|
ProtoInjector,
|
|
BindingWithVisibility,
|
|
DependencyProvider,
|
|
Visibility,
|
|
UNDEFINED
|
|
} from './di/injector';
|
|
export {
|
|
Binding,
|
|
BindingBuilder,
|
|
ResolvedBinding,
|
|
ResolvedFactory,
|
|
Dependency,
|
|
bind
|
|
} from './di/binding';
|
|
export {Key, KeyRegistry, TypeLiteral} from './di/key';
|
|
export {
|
|
NoBindingError,
|
|
AbstractBindingError,
|
|
CyclicDependencyError,
|
|
InstantiationError,
|
|
InvalidBindingError,
|
|
NoAnnotationError,
|
|
OutOfBoundsError
|
|
} from './di/exceptions';
|
|
export {OpaqueToken} from './di/opaque_token';
|