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

47 lines
1.1 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,
VisibilityMetadata,
SelfMetadata,
ParentMetadata,
AncestorMetadata,
UnboundedMetadata,
DependencyMetadata,
2015-07-13 15:48:28 -07:00
DEFAULT_VISIBILITY
2015-07-08 12:04:24 -07:00
} from './src/di/metadata';
// we have to reexport * because Dart and TS export two different sets of types
export * from './src/di/decorators';
export {forwardRef, resolveForwardRef, ForwardRefFn} from './src/di/forward_ref';
export {
Injector,
ProtoInjector,
DependencyProvider,
PUBLIC_AND_PRIVATE,
PUBLIC,
PRIVATE,
2015-06-29 11:15:49 -07:00
undefinedValue
2015-07-08 12:04:24 -07:00
} from './src/di/injector';
export {Binding, BindingBuilder, ResolvedBinding, Dependency, bind} from './src/di/binding';
2015-05-08 17:57:03 -07:00
export {Key, KeyRegistry, TypeLiteral} from './src/di/key';
2015-04-24 15:19:11 -07:00
export {
NoBindingError,
AbstractBindingError,
AsyncBindingError,
CyclicDependencyError,
InstantiationError,
InvalidBindingError,
NoAnnotationError,
OutOfBoundsError
2015-04-24 15:19:11 -07:00
} from './src/di/exceptions';
export {OpaqueToken} from './src/di/opaque_token';