I know there is a many methods to do this in Angularjs. For example by using $location etc.
But I am unable to find how to get value if URL looks like this:
How to get value one from that URL?
For routing I am using stateProvider:
export default angular.module("examino.userTestSession", ["ui.router"])
.config(function($stateProvider) {
$stateProvider
.state("testing", {
url: "/test",
controller: "UserTestSessionController",
templateUrl: "./app/components/userTestSession/user-test-session.html",
controllerAs: "vm"
})
.state("sessionExpired", {
url: "/sessionExpired",
controller: "UserTestSessionController",
templateUrl: "./app/components/userTestSession/user-test-session-expired.html",
controllerAs: "vm"
});
})
Can I maybe get that value when defining "testing" state?