Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control Sidebar not opening on Single Page Application #987

Closed
aindong opened this issue Mar 27, 2016 · 5 comments
Closed

Control Sidebar not opening on Single Page Application #987

aindong opened this issue Mar 27, 2016 · 5 comments

Comments

@aindong
Copy link

aindong commented Mar 27, 2016

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

@timurey
Copy link

timurey commented Mar 30, 2016

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

@hiepnm
Copy link

hiepnm commented Apr 13, 2016

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

@marrullas
Copy link

marrullas commented May 21, 2016

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

@almasaeed2010
Copy link
Contributor

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.

@DarioN1
Copy link

DarioN1 commented Feb 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants