AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

Control Sidebar not opening on Single Page Application

Open aindong opened this issue 10 years ago • 5 comments

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

aindong avatar Mar 27 '16 02:03 aindong

I don't know, how react works. In ember.js you need to run $.AdminLTE.controlSidebar.activate(); after adding control-sidebar in page.

timurey avatar Mar 30 '16 18:03 timurey

I have met the same problem when using AdminLTE with ui-router in AngularJS.

hiepnm avatar Apr 13 '16 09:04 hiepnm

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

marrullas avatar May 21 '16 13:05 marrullas

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.

almasaeed2010 avatar Jun 27 '16 16:06 almasaeed2010

I'm having the same problem working with an Angular4 application...

DarioN1 avatar Feb 12 '18 17:02 DarioN1