You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be able to subscribe to mat-expansion-panel events (for example (closed)="...") in AOT
What is the current behavior?
With a simple mat-expansion-panel:
HTML
<mat-expansion-panel(closed)="onClosed()"><mat-expansion-panel-header><mat-panel-title>
Personal data
</mat-panel-title><mat-panel-description>
Type your name and age
</mat-panel-description></mat-expansion-panel-header>
Something
</mat-expansion-panel>
Bug, feature request, or proposal:
BUG
What is the expected behavior?
Be able to subscribe to
mat-expansion-panel
events (for example(closed)="..."
) in AOTWhat is the current behavior?
With a simple
mat-expansion-panel
:HTML
TS
Running:
ng serve
and opening/closing the expansion panel displays the console.logng serve --aot
and opening/closing the expansion panel DOES NOT displays the console.logWhat are the steps to reproduce?
No plunkr or stackblitz as it's AOT related...
I've made a really simple repro available on github: https://github.com/maxime1992/repro-expansion-panel-bug-AOT
(I've also made clear commits in order show how I did my setup)
Run one instance with
ng serve
, the other withng serve --aot
and watch your console after opening/closing the panel.Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
Just thank you for all your good work 😄
The text was updated successfully, but these errors were encountered: