VueJS

VueJS now comes as a Compony-component is now a component that can be used to progressively enhance any component that comes from Drupal.

Vue will be registered as a global variable that you can use in other components.

If you are creating a component that needs Vue as an instance, you simply need to make this component a dependency of your component.

my-component/libraries.yml:

my-component:
  version: VERSION
  css:
    component:
      dist/my-component.css: {}
  js:
    dist/my-component.js: {}
  dependencies:
    - compony/vue

Specifications

Machine name

vue

Perks

Responsive
Without jQuery
Accessible

Drawbacks

No Drupal behaviours

Building blocks

Javascript

Stats

Public component
1 download
No open issue

Contributors