This may already be implemented, and if not, is a Feature Request
I am looking to set datatype requirements on the route params?
For example take the following route:
@RouteConfig([
{path: '/product/:id', component: productComponent, as: 'ProductDetail'}
])
I would like :id to only match if it is a number
/product/3 would match that route
/product/foo would not match the route
This may already be implemented, and if not, is a Feature Request
I am looking to set datatype requirements on the route params?
For example take the following route:
I would like
:idto only match if it is a number/product/3would match that route/product/foowould not match the route