I saw a line of code in a project that I just started working on. So, I am kind of new to Vue.js. The code is as below:
routes: [{
path: '/coursePage/:contentId/:title?',
name: 'coursePage',
component: coursePage,
meta: {requireAuth: false}
},
The route param - contentId works fine but I can't figure out the purpose of ? in param - title? Can anyone help me understand this? Thanks.