ui-router icon indicating copy to clipboard operation
ui-router copied to clipboard

$state in service

Open Vatsov opened this issue 11 years ago • 2 comments

I'm trying to migrate ng-route to ui-router, and I'm, facing an issue regarding usage a $state in my custom service.

Is there some workaround to get access to the relevant for ui-router $route and $routeParams?

Vatsov avatar Sep 30 '15 19:09 Vatsov

@Vatsov why do you need $state in a service?

RobbieTheWagner avatar Oct 01 '15 21:10 RobbieTheWagner

$state.go is one case.

@Vatsov what specifically are you looking to use? What isn't working? This is probably a better question for stackoverflow

eddiemonge avatar Oct 01 '15 21:10 eddiemonge