Conflict on Template of Twig and Vue.js

Conflict on Template of Twig and Vue.js

Asked on November 22, 2018 in vue.js.
Add Comment


  • 1 Answer(s)

        Here, we can modify vue.js tag indicator or else utilize twig verbatim tag, it marks a segment as raw text that must not be estimated by twig parser:

    {% verbatim %}
        new Vue({
     
            el: '.container',
            data: {
                foo: 'Hello world.'
            }
        });
    {% endverbatim %}
    

    As per Twig document:

    Verbatim tag marks segment as raw text which must not be parsed.

    Answered on November 22, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.