I have this state definition:
.state("workPlan.list", {
url: "MainPage",
templateUrl: "app/workPlan/templates/workPlanList.tmpl.html",
controller: "workPlanListController",
controllerAs: "list",
resolve: {
workPlans: ["workPlanServise", workPlanServiseResolver],
inspectionAuthority: ["lookupService", inspectionAuthorityResolver],
clients: ["lookupService", ClientsResolver]
}
})
The current path is:
/cities#/MainPage
I need to pass in URL some data:
'Table':'Clients'
'Key':'Name'
'Value':'ClientId'
'Table':'Dates'
'Key':'Desc'
'Value':'DateId'
'Table':'Sites'
'Key':'SiteName'
'Value':'SiteId'
I need to send the data above in URL path:
/cities#/MainPage?{'Table':'Clients','Key':'Name','Value':'ClientId'}{...}{...}
then in state definition I need to use it in resolve function.
So my question is it possible to send the data in the path in format above and how can I access it in resolves function.