Skip to content

Ion tab ng repeat issue #1829

@TheCodeDestroyer

Description

@TheCodeDestroyer

Well I have been playing around with Ion tabs a bit and I think I found a bug.
My current code looks like this:

<ion-tabs class="tabs-icon-top tabs-top tabs-dark">
    <ion-tab ng-repeat="tab in tabs" title="{{ tab.title | translate }}" icon="{{ tab.icon }}" href="#/{{ tab.htmlUri }}">
        <ion-nav-view name="{{ tab.viewName }}"></ion-nav-view>
    </ion-tab>
</ion-tabs>

If I replace <ion-nav-view name="{{ tab.viewName }}"></ion-nav-view> with
<ion-nav-view name="home-tab"></ion-nav-view> it works so I was wondering why doesn't
{{ tab.viewName }} resolve If I inspect the element it hasn't even been parsed its still name="{{ tab.viewName }}" in html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions