Answer the question
In order to leave comments, you need to log in
How vue.js compatible with IE11?
I am developing some application on django + vue.
I included the vue.js library in the header.
I am making a simple application. Something like:
<style type="text/css">
[v-cloak] > * { display:none }
[v-cloak]::before { content: "загрузка…" }
</style>
<div id="app" v-cloak>
...
</div>
<script type="module">
new Vue({
el: '#app',
delimiters: [''], // Так как шаблонизатор Django - для вывода переменных использую скобки
data: {
items: [
{ title: 'Приложение 1', icon: 'account_box', url: "{% url 'app1' %}" }, // вместо {% url 'url' %} тут подставится актуальный url
{ title: 'Приложение 2', icon: 'date_range', url: "{% url 'app2' %}" },
]
},
methods: {
select: function(instance) {
window.location.href = instance.url;
}
}
});
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question