4 ms·
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. ht
by molukk 11y 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 http://vuejs.org/api/#template
- recursive 11y agoI love this feature. Putting html fragments in string literals in javascript seems pretty awkward to me.