5 ms·
> With React there's no weird "v-if ng-if" template logic that you have to grapple with. Yes, I hate that syntax. It's like they picked the worst from HTML and
by amelius 8y ago
> With React there's no weird "v-if ng-if" template logic that you have to grapple with.
Yes, I hate that syntax. It's like they picked the worst from HTML and Javascript. Instead "if" statements should be dealt with in Javascript entirely.
It's one of the reasons why I don't use Vue.
- jaequery 8y agothat was how i felt too which was the same reason i disliked angular. but vue's templating syntax have turned out to be really enjoyable to use. it made me think how wrong i was of my initial impression of vue. you have to give it a try to understand it.
- serpix 8y agohow do you access nested properties in Vue templates? You can't do a.b.c if b is undefined and instead need to wrap it into satanic template extensions
- bigtunacan 8y agoWhen logic starts to get too complicated you have the option to move it into a render function; you can even use JSX if that's your thing. One of the nice things about Vue IMHO is how it leaves more flexibility to the developer to choose the right path.
- amelius 8y agoSorry, I appreciate your enthusiasm, but I just can't imagine how shoehorning a language into XML could ever be a good idea.
- dmitriid 8y agoThere’s nothing enjoyable about Vue’s syntax. It’s not really HTML, and not really Javascript (it’s Javascript-like ... sometimes). Same goes for Angular, Polymer and Svelte. And on the Javascript side Vue actually breaks existing assumptions about code. For example, it hoists methods and properties and makes `this` available where it can’t be available.