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

46 lines
938 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,
ProviderBuilder,
ResolvedBinding,
ResolvedFactory,
Dependency,
bind,
Provider,
ResolvedProvider,
provide
} from './di/provider';
export {Key} from './di/key';
export {
NoProviderError,
AbstractProviderError,
CyclicDependencyError,
InstantiationError,
InvalidProviderError,
NoAnnotationError,
OutOfBoundsError
} from './di/exceptions';
export {OpaqueToken} from './di/opaque_token';