refactor(di): removed @Parent
BREAKING CHANGE The @Parent annotation has been removed. Use @Ancestor instead. @Parent was used to enforce a particular DOM structure (e.g., a pane component is a direct child of the tabs component). DI is not the right mechanism to do it. We should enforce it using schema instead.
This commit is contained in:
@ -10,7 +10,6 @@ export {
|
||||
InjectableMetadata,
|
||||
VisibilityMetadata,
|
||||
SelfMetadata,
|
||||
ParentMetadata,
|
||||
AncestorMetadata,
|
||||
UnboundedMetadata,
|
||||
DependencyMetadata,
|
||||
@ -24,12 +23,12 @@ export {forwardRef, resolveForwardRef, ForwardRefFn} from './src/di/forward_ref'
|
||||
export {
|
||||
Injector,
|
||||
ProtoInjector,
|
||||
BindingWithVisibility,
|
||||
DependencyProvider,
|
||||
PUBLIC_AND_PRIVATE,
|
||||
PUBLIC,
|
||||
PRIVATE,
|
||||
undefinedValue
|
||||
|
||||
} from './src/di/injector';
|
||||
export {Binding, BindingBuilder, ResolvedBinding, Dependency, bind} from './src/di/binding';
|
||||
export {Key, KeyRegistry, TypeLiteral} from './src/di/key';
|
||||
|
Reference in New Issue
Block a user