Reputation: 3595
I am trying to create a component that essentially wraps mat-expansion-panel. See code at: https://stackblitz.com/edit/angular-issue-repro2-4wcj9i
But it is giving me "No provider for MatExpansionPanel" despite me specifying viewProviders: [MatExpansionPanel] Any ideas?
Upvotes: 0
Views: 368
Reputation: 3595
I fixed the initial issue by adding
viewProviders: [MatExpansionPanel]
to the expansion-panel-header.component.ts
There is still an issue but I will post a separate question for this.
Upvotes: 1