Skip to content

Nested ui-view calls directive's $onInit twice #3224

Closed
@esinek

Description

@esinek

Using a parent-child hierarchy with nested ui-views, I am having my directive's $onInit being called twice. I've created a SO post for this
http://stackoverflow.com/q/41269277/156611

and also a couple plunkers. One without named views, one with named views.
http://plnkr.co/edit/rc8vbt?p=preview
http://plnkr.co/edit/PZnA5h?p=preview

Is this an issue with how I'm structuring the code or an issue with ui-router?

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