Hacker News new | past | comments | ask | show | jobs | submit login

i don't get why some of the attributes starts with : and some do not, like <sidebar :show.sync="showRight" placement="right" header="Title" :width="350">. these are the type of things that makes me cringe =/



that's vuejs shorthand for binding the attribute to a variable (or a js value).

i.e. show is bound to the value of showRight placement is read as "right" width is set to be the int 350.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: