0

Is there a way to use VueJs Framework under Magento 2 ?

2

2 Answers 2

1

Their is a way to integrate VueJs in you custom module.

You should do as follows:

  1. Copy all content of this url insaid you custom module

    /Custom/Module/view/frontend/web/js/vue.js

  2. Configure requirejs-config.js

    /Custom/Module/view/frontend/requirejs-config.js

        var config = {
           map: {
               '*': {
                   vue: 'Custom_Module/js/vue'>             
               }
           } };
    
  3. And to use it:

    define([
        'jquery',
        'vue'
    ], function ($, Vue) {
        "use strict";
        // code...
    });
    
0

Vue js is a library/framework which needs to be included. So include it and start writing some code in VueJS format.

This answer is a good summary.

https://magento.stackexchange.com/a/256234/70343

That's to use it. It will not convert Magento 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.