Skip to content

Commit

Permalink
fix(api): remove deprecated APIs
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Removed APIs:
- Removed `ComponentInjector` - use `DynamicComponentInjector`
- Removed `COMPONENT_INJECTOR` - use `DynamicComponentInjectorToken`
  • Loading branch information
gund committed Dec 1, 2021
1 parent 1989f74 commit f7757de
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions projects/ng-dynamic-component/src/lib/component-injector/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ export interface DynamicComponentInjector {
componentRef: ComponentRef<any> | null;
}

/**
* @deprecated Since v6.0.0 - Use {@link DynamicComponentInjector} instead
*/
export type ComponentInjector = DynamicComponentInjector;

export const DynamicComponentInjectorToken = new InjectionToken<
DynamicComponentInjector
>('DynamicComponentInjector');

/**
* @deprecated Since v6.0.0 - Use {@link DynamicComponentInjectorToken} instead
* and provide component class via `useExisting` instead of `useValue`
*/
export const COMPONENT_INJECTOR = DynamicComponentInjectorToken;

0 comments on commit f7757de

Please sign in to comment.