4 ms·
I will avoid all frameworks that do stuff like <li *ngFor="let item of items; let i = index; trackBy: trackByFn">...</li> and <li v-for="(item, index) in ite
by FrancoDiaz 10y ago
I will avoid all frameworks that do stuff like
<li *ngFor="let item of items; let i = index; trackBy: trackByFn">...</li>
and
<li v-for="(item, index) in items" :key="item.id">...</li>
I'm just not going to write code in those custom attributes.
- audleman 10y agoWhat do you prefer instead? I feel like I've gotten used to working with this kind of thing, though some part of me doesn't like it.
- devforey 10y agoIf you're like me who doesn't like those magic things, I advise you try React if you haven't tried before.
- niyazpk 10y agoThis is why I prefer React. I think JSX (HTML in JavaScript) is a much better idea than JS in HTML (Angular). The HTML tags in JSX feels like just some extra syntactic sugar on top of vanilla JavaScript when compared to angular directives(attributes?) which just look plain ugly.