petebacondarwin / dgeni-angular

Apache License 2.0
55 stars 25 forks source link

create navbar #6

Open daniele-zurico opened 9 years ago

daniele-zurico commented 9 years ago

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?