Vue Router Regex Allow Integer Param Only

November 1, 2020
{
    path: '/news/page/:page(\\d+)?'
}

Page must be integer

  • /news/page/1
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.