This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 3 years, 5 months ago.

Sidebar always collapse with angularjs


  • gwc0721
    Participant

    Member Reply #1973

    I applied angularjs with ui-router in my metronic application which was almost the same as the metronic angular demo. Unfortunately, a sidebar problem occurred. The sidebar itself always collapsed and never locate the correct link, which confused me in some extent.

    BTW, I tried to fix the problem and alert the link info. However, every time the previous link info was shown. For instance, I clicked Link A in menu, nothing happened. Then Link B, it showed the info about Link A, and so on.

    There was an exception, when i reloaded the page by pressing F5, this time the sidebar worked correctly!

    Here is the hierarchy in my route.js (ui-router)

    • main
      • dashboard
      • users
        • list
        • detail
        • creation
      • roles
        • list
        • detail
        • creation

    I’ve uploaded my app.js and router.js

     

    Attachments:
    You must be logged in to view attached files.
    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #1989

    Hi,

    Thanks for your feedback.

    Will it be possible to check your working app through a test link ? It would help to provide you more effective support.
    You can provide link in a private reply(check “Set as a private reply above the reply form”).

    Thanks.

Tagged: 

You must be logged in to reply to this topic.