improved integration/usage of vue components
What does this MR do?
it splits up the current vueUse()
function into to seperate ones, so that multiple components can be used on the same page, even 'global' ones like navigation bar or the chat
PHP
-
$this->view->vueComponent($id, $component, $props?, $initialData?)
where$id
is going to be used as an selector for thevueApply()
method
JS
-
vueRegister(compoenents: Object)
is now available for registering components globally -
vueApply(selector: string|HTMLElement)
executes vue for the given element
How confident are you it won't break things if deployed?
pretty
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s))