Skip to content

improved integration/usage of vue components

chandi requested to merge vue-integration-improvement into master

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 the vueApply() 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))

Merge request reports