[Vuejs]-Vue in Django app – How to setup Vue instance from static js files

0👍

Vue requires each component to have ONE single root node. Your code example has two because you’ve placed [[rate]] outside the ul.

Maybe this works better:

    <div class="container">
        <div>
            <ul class="list-group mt-2">
                {% for x in huj%}
                    <li class="list-group-item">{{x}}</li>
                {% endfor %}
            </ul>
           [[rate]]
         </div>
    </div>

Leave a comment