I want to define some state with optional url in angular ui-router
how can I do this?
for example
state('test',{
url:'/list/:id/color?/:color?'
}
in this example the color and :color is optional and state should work whit these urls:
site.com/list/1
site.com/list/color/red