I have a state in my config.js which looks like this:
state("link_redirect", {
url: "/link-redirect/",
controller: "LinkRedirectCtrl",
title: "Redirect Link",
params: {endpoint: null}
});
I dont want to change the state definition in shown above, still how can I send the endpoint
params in URL so that I can fetch it using $stateParams service in my controller ?
$stateParams
you will need to add it to your url like this:url: "/link-redirect/:endpoint"