Skip to content

$onInit is called twice when componentProvider is used #3735

Closed
@valterkraemer

Description

@valterkraemer

This is a:

  • Bug Report
  • Feature Request
  • General Query

My version of UI-Router is: 1.0.20

Bug Report

Current Behavior:

$onInit is called twice when componentProvider is used.

Expected Behavior:

$onInit should be called once.

Link to Plunker or stackblitz that reproduces the issue:

Navigating to about fires $onInit twice (componentProvider ). Home only once (component).

https://stackblitz.com/edit/ui-router-angularjs-g5wlce?file=app.js

This issue have been introduced recently, I think it worked in 1.0.17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions