Skip to content

runGuardsAndResolvers: 'paramsOrQueryParamsChange': resolve on query param change works but data does not seems to be passed to subscribed Observable. #15290

@basilikum

Description

@basilikum

I'm submitting a ...

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
When using runGuardsAndResolvers: 'paramsOrQueryParamsChange' to make sure that a resolver is run whenever a query parameter changes, the resolver does runs, but the fetched data is not passed onto the subscription to the route.data Observable within the component.

Expected behavior
If I subscribe to route.data within the component, I would expect to get updates whenever new data is fetched, but I only get the initial data, no updates.

Please tell us about your environment:
Ubuntu 16.04

  • Angular version: 2.0.X
    Angular 4.0.0-rc.5

  • Browser:
    Chrome 54

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions