3 ms·
Somewhat magical. All bound expressions in Vue are javascript expressions. Names are typically bound on "this", which is the component instance. So the above e
by afd8856 9y ago
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.
- ng12 9y agoNot entirely true -- I know there's at least special processing for filters: https://vuejs.org/v2/guide/syntax.html#Filters https://vuejs.org/v2/guide/syntax.html#Filters