Is it possible to define state with an optional URL in Angular UI-Router?
If so, how can I achieve this functionality?
For instance:
state('test',{
url:'/list/:id/color?/:color?'
}
In the given example, both "color" and ":color" are optional parameters. The state should be able to handle URLs like:
site.com/list/1
site.com/list/color/red