Hi!
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
In sidebar.component.ts
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.
Thanks!
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!
Best regards,
Hi Hernan,
In the file demo1/src/app/_metronic/layout/core/configs/dark-sidebar.config.ts, could you please try to update this config value to true
?
The config path is app.sidebar.default.minimize.desktop.default
Thanks
Worked like a charm. I just changed this config to whatever value I have saved in the init of sidebar.component.ts
Thanks!