Created
January 10, 2022 22:21
-
-
Save RuanAragao/c0505e7cb74891f6de7bddd675fe33c4 to your computer and use it in GitHub Desktop.
VueJS Django Admin CDN Exemple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js"></script> | |
<script> | |
document.addEventListener('DOMContentLoaded', function () { | |
new Vue({ | |
el: '#app', | |
// define data - initial display text | |
data: { | |
text: "JS Power" | |
}, | |
delimiters: ["<%","%>"] | |
}) | |
}) | |
</script> | |
<div id="app"> | |
<p><% text %></p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment