AngularJS: Routing with URL having optional parameters AngularJS: Routing with URL having optional parameters angularjs angularjs

AngularJS: Routing with URL having optional parameters


Optional route parameters are marked with ?, like this:

`/users/:id?`

Then this route matches both /users and /users/1 paths