Jordan-Hall / angular-material-rail-drawer-plugin

Angular Material extension for mini/rail drawer variant
Other
47 stars 13 forks source link

Fix strict template bug (#44) #46

Closed Gallimathias closed 2 years ago

Gallimathias commented 2 years ago

Newer Angular projects have "strictTemplates": true as default. And many editors (e.g. VS Code) recommend activating this mode.

If this mode is activated, the compiler actually checks the contents of the HTML files. Since the rail mode is not part of the MatDrawerMode enum, an error occurs.

As a workaround, as long as no extension of the enum is possible, a second selector is introduced that can be used alternatively if the strict template mode is active.

This should fix issue #44