3 ms·
String templates (angular, vue, riot, aurelia, ember, etc) try to be close to the WEB component standard. I find them horrible, because I too use typescript and
by boubiyeah 10y ago
String templates (angular, vue, riot, aurelia, ember, etc) try to be close to the WEB component standard.
I find them horrible, because I too use typescript and 1) you have to learn a template sub-language (angular is the worst in that regard) and all your component wiring can't be typed.
- lightblade 10y agoWell, I know Vue and Ember are no longer using string based template. Most front end nowadays are DOM based templates.
- Touche 10y agoHandlebars is not valid HTML, so I find it hard to believe it is DOM based. I believe the new version of Glimmer compiles its strings to bytecode.
- boubiyeah 10y agoEven angular 2 uses some sort of virtual dom under the hood. My point remains though, as all the developer manipulates are strings. I think manipulating objects (virtual dom nodes) is a more powerful and versatile way to do it.