Can I set a route with optional params (same template and controller, but some params should be ignored if they don\'t exist?
So instead of writing the following two
It looks like Angular has support for this now.
From the latest (v1.2.0) docs for $routeProvider.when(path, route):
path can contain optional named groups with a question mark (:name?)
path
:name?