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

Sidebar Repeat #324

Closed
liuhao2050 opened this issue Aug 3, 2017 · 2 comments · May be fixed by #325
Closed

Sidebar Repeat #324

liuhao2050 opened this issue Aug 3, 2017 · 2 comments · May be fixed by #325

Comments

@liuhao2050
Copy link

liuhao2050 commented Aug 3, 2017

if a top level sidebar name contians another top level‘s name, the child of first top level sidebar will both append to those two top level sidebars.

@liuhao2050
Copy link
Author

liuhao2050 commented Aug 3, 2017

just like this, "videoslll.hhh" will show at both two states, videoslll and videos. How to fix this ?

.state("videoslll", {
         url: "/lll",
         template : '<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',
         title: "lll"
         sidebarMeta: {
           order:700
         }
    }).state("videoslll.hhh", {
         url: "/hhh"
         templateUrl: "app/pages/videos/vv/vv.html"
         title: "vv"
         sidebarMeta: {
           order:700
         }
    })

$stateProvider.state("videos", {
        url: '/videos'
        template : '<ui-view  autoscroll="true" autoscroll-body-top></ui-view>',
        abstract: true,
        title: '视频数据',
        sidebarMeta: {
          icon: 'fa fa-video-camera',
          order: 100,
        },
    })

@liuhao2050
Copy link
Author

liuhao2050 commented Aug 3, 2017

I just fixed this by change src/app/theme/components/baSidebar/baSidebar.service.js
image

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

Successfully merging a pull request may close this issue.

1 participant