my plugin has a custom button sending data to the api. i would like to forward the email address of the current user.
how do i read the current user object in vue?
If you pass it as a computed value in your PHP, it will be available in your Vue component
'computed' => [
'email' => function () {
return kirby()->user()->email();
}
]