After doing lot of research on internet and going through Offical Angular Doc on Routing, I haven't found one working solution so posting this question here, I don't know if I am asking it wrong way or completely out of sync here so bear with me I am new to Angular.
Basically I want to define a route which takes multiple optional parameter.
In my Routing module I am defining a route like this
const appRoutes: Routes = [
{path: 'game/:width/:height',component: GameComponent
}];
which works fine, if I am Naviagte to https://localhost:4200/game/50/80
but gives "Cannot match any routes Exception" for https://localhost:4200/game/50/
How do I define a route which works either ways ( with/without height )
even a solution using query parameter would also do, something like https://localhost:4200/?width=50&height=80