angular-cn/modules/angular2/src/core/di.ts

41 lines
901 B
TypeScript
Raw Normal View History

/**
* @module
* @description
2015-04-17 06:29:05 -04:00
* 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} from './di/injector';
export {
Binding,
BindingBuilder,
ResolvedBinding,
ResolvedFactory,
Dependency,
bind
} from './di/binding';
export {Key, TypeLiteral} from './di/key';
export {
NoBindingError,
AbstractBindingError,
CyclicDependencyError,
InstantiationError,
InvalidBindingError,
NoAnnotationError,
OutOfBoundsError
} from './di/exceptions';
export {OpaqueToken} from './di/opaque_token';