Skip to content

$state injection into resolve function gives old state #238

@kevinsbennett

Description

@kevinsbennett

When passing in $state into a resolve function, it seems to provide the old state, not the new state that we're resolving for.

resolve: {
model: ["$state", function($state){
//$state.current gives info for old state here
}]
}

This is a problem as we can't access custom state data in the resolve function.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions