简体   繁体   English

在Angular中滑动多级菜单和面包屑

[英]Slide multi-level menu and breadcrumbs in Angular

Does anyone know how I could modify the following code to make a sliding multi-level menu and breadcrumbs in Angular, like this facebook help page? 有谁知道我可以如何修改以下代码以在Angular中创建滑动的多级菜单和面包屑,例如此Facebook帮助页面?

My basic html code is like this: 我的基本html代码是这样的:

<ul>
<li>
    <a href="#">Electronics</a>
    <ul>
        <li><a href="#">back</a></li>
        <li><a href="#">Phones</a></li>
    </ul>
</li>
<li>
    <a href="#">Furniture</a>
    <ul>
        <li><a href="#">back</a></li>
        <li>
            <a href="#">Living Room</a>
            <ul>
                <li><a href="#">back</a></li>
                <li><a href="#">Bookshelves</a></li>
            </ul>
        </li>
        <li><a href="#">Patio</a></li>
    </ul>
</li>
</ul>

In regards to the sliding menu, there are a ton of solutions out there. 关于滑动菜单,有很多解决方案。 Here are some links: 以下是一些链接:

http://www.sitepoint.com/pure-css-off-screen-navigation-menu/ http://blogs.sitepointstatic.com/examples/tech/css3-sliding-menu/index.html http://www.sitepoint.com/pure-css-off-screen-navigation-menu/ http://blogs.sitepointstatic.com/examples/tech/css3-sliding-menu/index.html

To stay in the angular world you can switch out partials in different states or use something like ng-switch. 要停留在有角度的世界中,您可以切换处于不同状态的零件或使用ng-switch之类的东西。 There are really so many options it is difficult to give you a single answer. 确实有太多选择,很难给您一个答案。

In regards to the breadcrumbs, here are a few nice pre-built options: 关于面包屑,这里有一些不错的预构建选项:

jsc-breadcrumbs - a blog post with instructions angular-breadcrumbs jsc-breadcrumbs- 有关说明 angular-breadcrumbs 的博客文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM