3 ms·
When I first began delving into reactive client interface frameworks. This was one of my biggest gripes. It looks, and reads like a giant confusing mess. I fina
by overcast 11y ago
When I first began delving into reactive client interface frameworks. This was one of my biggest gripes. It looks, and reads like a giant confusing mess. I finally came across http://vuejs.org/ http://vuejs.org/ and I haven't looked back. Simple binding syntax to html elements, and powerful enough for most projects without being heavyweight.
I mean it doesn't get any more straightforward than this.
<div id="app">
<p>{{ message }}</p>
<input v-model="message">
</div>
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!'
}
})
- Raphmedia 11y agoHere we use https://www.jsviews.com/ https://www.jsviews.com/ in a similar way by having the templates in .jshtml files and calling them from the .js ... I wouldn't want to put the html directly in my .js files either!
- grumblestumble 11y agoif there's a meaningful semantic difference between what you just posted and Angular's 1.5 component syntax, I'm missing it.
- overcast 11y agohttp://vuejs.org/guide/comparison.html http://vuejs.org/guide/comparison.html