angularjs - Dynamic parameters with ui-router -


i'm developing search app angular using ui-router.

requirements:

  • the search form has many fields , have optional.
  • users should share users url display page result list. (so need use querystring)

so have urls

path/to/url/list?p=123&v=876  path/to/url/list?c=yes&a=true&p=123  path/to/url/list?z=yes&c=yes&a=true&p=123  path/to/url/list?z=yes&v=876&a=true&p=123 

and endless combinations. know can use $location.search() params in json format. great! question how can define url state ui-router? define explicitly params in url not option. have read many post didn't find concrete answers.

if you're getting parameters $location don't need define them in state explicitly.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -