how to make drawer open by default
also I am using angular app and I am trying to use this line KTDrawer.createInstances();
but I don't know from where I can import KTDrawer
The solution works perfectly, especially when you want to control component behavior on load. Just like when designing interactive features for kids’ pages—say, a fun paas kleurplaat section—you want things to be visible right away without extra clicks. This drawer method keeps the experience smooth and intuitive. Thanks for sharing!
Hi Hussien Helil
KTDrawer is designed for the HTML version of Metronic and is not intended for use in Angular applications. To achieve similar functionality in your Angular app, you can refer to the example code in the scripts-init.component.ts file located at /src/app/_metronic/layout/components/scripts-init/.
This file likely contains initialization logic for various components, including possibly the drawer component. You can check this file for examples of how components are initialized and used.
Thank you