Control Sidebar not opening on Single Page Application
Hello, I've been trying to create a spa app using react, and used admin lte as my main template. When I'm about to use the Control Sidebar, it shows some weirdness in it. On the first load of the app, it will work properly, but then when I switch to other page using react-router, and goes back into the page where control sidebar is implemented, it's not working. Please help, thanks in advance
I don't know, how react works. In ember.js you need to run $.AdminLTE.controlSidebar.activate(); after adding control-sidebar in page.
I have met the same problem when using AdminLTE with ui-router in AngularJS.
Use this example
in the code you put something like
ngOnInit() {
getAdminLTE().layout.fix();
getAdminLTE().controlSidebar.activate();
}
I hope you understand me. I have still a problem to work with a single click
Due to some neglect in my part, many issues weren't addressed for some time. Some of these issues are no longer relevant since a solution might have been found. Therefore, we decided to close all issues that are over a month old. However, if the issue still persists and you'd like help, then by all means repost your issue and we will consider it again. In the mean time, we will close this post.
Thanks for your understanding and we apologize for any inconvenience <3.
I'm having the same problem working with an Angular4 application...