Angular - Demo 1 - Persist sidebar status
I am using Metronic Demo 1 for Angular and I trying to save the sidebar status (either minimized or not) so it stays the same way after a refresh
Tried to set 'data-kt-app-sidebar-minimize' to either 'on' or null but when I do, I can't change the status again.
Also tried to set
this.toggleEnabled = true
this.toggleButtonClass = 'active'
But it doesn't work either.
In the file demo1/src/app/_metronic/layout/core/configs/dark-sidebar.config.ts, could you please try to update this config value to
The config path is
Worked like a charm. I just changed this config to whatever value I have saved in the init of sidebar.component.ts
Great to hear that it worked for you! If you have any further questions or issues, feel free to reach out and we'll do our best to assist you.
Thanks for using our product, and have a great day!