News for hackers. Stuff that matters.
Re:Why Choose Vue.js by crooked-v on Friday June 23, 2017 @04:09PM (#14622339)
Vue has one source of truth: the data stored in each component. You bind elements in the template to that data and they get automatically re-rendered when it changes, and you bind events in the template to methods (or just ad-hoc things like @click="toggleVar = !toggleVar" for a boolean) that update that data.

This includes child components, which trigger events that you bind in the parent component.

Re:Why Choose Vue.js by ng12 on Friday June 23, 2017 @04:58PM (#14622732)
> @click="toggleVar = !toggleVar"

Oh boy. Another reason why I don't like templates -- you invariably end up with magical incantations like this. Working with JSX has given me an incredible distaste for templating languages.

Re:Why Choose Vue.js by afd8856 on Saturday June 24, 2017 @01:47AM (#14624534)
Somewhat magical.

All bound expressions in Vue are javascript expressions. Names are typically bound on "this", which is the component instance. So the above expression is equivalent to

    this.toggleVar = !this.toggleVar.
Re:Why Choose Vue.js by ng12 on Sunday June 25, 2017 @04:41PM (#14632049)
Not entirely true -- I know there's at least special processing for filters: https://vuejs.org/v2/guide/syntax.html#Filters