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.
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