Skip to content

Commit

Permalink
fix(cdk/accordion): add CDK_ACCORDION export (angular#27981)
Browse files Browse the repository at this point in the history
* fix(cdk/accordion): add `CDK_ACCORDION` export

Fixes an issue in the Angular CDK `accordion` component where `CDK_ACCORDION` injection token cannot be imported from `@angular/cdk/accordion`. This is because `public-api.ts` did not contain `CDK_ACCORDION` export.

* fix(cdk/accordion): update public api
  • Loading branch information
Almost-Infinity committed Oct 31, 2023
1 parent 238e978 commit ab8d7e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/accordion/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
*/

export {CdkAccordionItem} from './accordion-item';
export {CdkAccordion} from './accordion';
export {CdkAccordion, CDK_ACCORDION} from './accordion';
export * from './accordion-module';
3 changes: 3 additions & 0 deletions tools/public_api_guard/cdk/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { SimpleChanges } from '@angular/core';
import { Subject } from 'rxjs';
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';

// @public
export const CDK_ACCORDION: InjectionToken<CdkAccordion>;

// @public
export class CdkAccordion implements OnDestroy, OnChanges {
closeAll(): void;
Expand Down

0 comments on commit ab8d7e5

Please sign in to comment.