Closed thxmike closed 2 years ago
Facing the same issue here
Can you guys please check this issue? I have opted-out of template type checking just for this to work.
Even when we try to cast it in the html
<mat-sidenav class="noprint" (closedStart)="animationDone(true)" (openedStart)="animationDone()" [expandedWidth]="'330px'" [mode]="$any('rail')" [opened]="isExpanded">
It doesn't work.
Heey guys,
I'll take care of the bug. And I'm in the process of fixing it. Since I use this package almost everywhere here.
The problem is the strict template checking of Angular. Unfortunately there is no real workaround as the template selector only matches the string. That's why the $any in mode trick doesn't work.
Currently, the only workaround is to temporarily set the strict templates mode in angular to false.
Thank you @Gallimathias, published the changes and released the version 1
The recent patch solved the issue.
Thanks guys!
When following the installation steps outlined in the readme and running ng build I receive the following error:
I am using angular 12.1.2, node 14.16. Below is my package.json dependencies
here is my app.module.ts
In my navigation.component that has the mat-sidenav here is the markup
I am not sure if this is angular version issue or if I am missing something. I have my material modules in a separate module, i.e. MyMaterialModule which is imported into the appModule, I have also tried moving the DrawerRailModule to AppModule but this did not help. I can provide more information if required.