Maxxx
Maxxx

Reputation: 3595

Angular Material Wrapper class giving error

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

Answers (1)

Maxxx
Maxxx

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

Related Questions