Files
angular-docs-cn/modules/angular2/di.ts
T

41 lines
1.0 KiB
TypeScript
Raw Normal View History

/**
* @module
* @description
2015-04-17 03:29:05 -07:00
* The `di` module provides dependency injection container services.
*/
export {
2015-07-08 12:04:24 -07:00
InjectMetadata,
OptionalMetadata,
InjectableMetadata,
SelfMetadata,
2015-07-29 11:26:09 -07:00
HostMetadata,
SkipSelfMetadata,
DependencyMetadata
2015-08-20 14:28:25 -07:00
} from './src/core/di/metadata';
2015-07-08 12:04:24 -07:00
// we have to reexport * because Dart and TS export two different sets of types
2015-08-20 14:28:25 -07:00
export * from './src/core/di/decorators';
2015-08-20 14:28:25 -07:00
export {forwardRef, resolveForwardRef, ForwardRefFn} from './src/core/di/forward_ref';
export {
Injector,
ProtoInjector,
2015-07-13 15:57:06 -07:00
BindingWithVisibility,
DependencyProvider,
Visibility,
2015-08-10 21:42:47 -07:00
UNDEFINED
2015-08-20 14:28:25 -07:00
} from './src/core/di/injector';
export {Binding, BindingBuilder, ResolvedBinding, Dependency, bind} from './src/core/di/binding';
export {Key, KeyRegistry, TypeLiteral} from './src/core/di/key';
2015-04-24 15:19:11 -07:00
export {
NoBindingError,
AbstractBindingError,
CyclicDependencyError,
InstantiationError,
InvalidBindingError,
NoAnnotationError,
OutOfBoundsError
2015-08-20 14:28:25 -07:00
} from './src/core/di/exceptions';
export {OpaqueToken} from './src/core/di/opaque_token';