Hacker News new | ask | show | jobs
by molukk 3885 days ago
If I read the documentation correctly, you can also pass it a string to be used as template. If the string starts with a '#' it will act as a querySelector.

http://vuejs.org/api/#template

1 comments

I love this feature. Putting html fragments in string literals in javascript seems pretty awkward to me.