'Can I use route function on vue router (nuxt router-extra) when using yaml?

I'm wondering if there is a way of doing this with yaml? I've searched a lot with no luck

<router>
{
  name: 'foo',
  path: '/foo',
  props: router => ({ page: router.query.page })
}
</router>

But I want to use yaml, something like this:

<router>
  name: foo
  path: /foo
  props: ??????????
</router>

It is possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source