Skip to content

create navbar #6

@daniele-zurico

Description

@daniele-zurico

Hello @petebacondarwin,
I'm sure that isn't a bug but I don't find any kind of documentation so I try to ask here.
I'm trying to create a navbar with links that create a tree:
ex:
mod1
Services
service1
mod2
Controllers
MyCtrl
Directives
directive1

this is my template:
{% if doc.dependencies.length -%}

Index

{%- for dep in doc.dependencies %}
    {$ dep | relativeLink(doc) $}


<!-- Services and Controllers for each module -->
{% for groupName, group in dep.groups %}
{% if group.children.length %}
<material-divider></material-divider>
{$ group | relativeLink(doc, group.title) $}

    {% for component in group.children %}
    {$ component | relativeLink(doc) $}
    {%- endfor %}

{%- endif %}
{%- endfor %}


{%- endfor %}

{%- endif %}

The tree is generate correctly but the problem is that when I click on the links (i.e. MyCtrl) the tree change with the dependencies of MyCtrl.

How I can generate the same menu for all the pages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions