-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Is there a way to convert a url string (eg /posts/123
) to a state (eg { stateName: 'app.posts', stateParams: { id: '123' } }
)
The API we need to interface with returns URLs instead of something more abstract such as states or type/identifier pairs
Simply calling $location.url(apiUrl)
isn't feasible either as the Ionic Framework handles history internally.
It would be much cleaner to be able to go $state.parseUrl(apiUrl)
to check if we even support the state before routing to it using $state.go(...)
Parziphal, aeternusrahl and theredpea
Metadata
Metadata
Assignees
Labels
No labels