Skip to content

Route Parameters Datatypes  #7321

@electricBonfire

Description

@electricBonfire

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions