Skip to content

uiOnParamsChanged not fired if used with componentProvider #3707

Closed
@Maximaximum

Description

@Maximaximum

This is a (check one box):

  • Bug Report
  • Feature Request
  • General Query

My version of UI-Router is: (type version)
1.0.5

Bug Report

Current Behavior:

Clicking the "1" and "2" links inside the stackblitz app does not change the displayed param value because component's uiOnParamsChanged method is never called. However, if you comment away the lines 22-24 and uncomment line 21 (i.e., use component instead of componentProvider in the state definition), everything works just as expected.

Expected Behavior:

Clicking the "1" and "2" links inside the stackblitz app should change the displayed param value to, respectively, "1" or "2", because the component's uiOnParamsChanged is called whenever a state param value changes.

Link to Plunker or stackblitz that reproduces the issue:

https://stackblitz.com/edit/ui-router-angularjs-budr1v

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