Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue router accept params null

Just adding a question mark ? will make it optional.

{
    path: '/offers/:member?',
    ...
},
It works for Vue Router 2.0 onward.
 
PREVIOUS NEXT
Tagged: #vue #router #accept #params #null
ADD COMMENT
Topic
Name
2+6 =