0

I'm trying to run the code bellow, which is probably the most simple example of Vue.js, but it doesn't work at all:

<div id="app">
  {{ message }}
</div>
<script>
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!'
  }
})
</script>

What's the problem? I'm loading <script src="https://unpkg.com/[email protected]/dist/vue.js"></script> in the header, no errors or warnings in Chrome dev tools. Thanks for any tips.

7

1 Answer 1

1

Well, turned out, that Vue.js and Flask are using the same syntax for templates (two handelbars {{}}). So if you're using both of them - check this out https://github.com/yymm/flask-vuejs

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.