ngFor example is terrible. If you look into documentation more carefully you will see example that you will use 100% of your code time:

<li *ngFor=”let item of items; index as i; trackBy: trackByFn”>…</li>

And if you remove some optional variables, you will get clean code:

<li *ngFor=”let item of items”>…</li>

As simple as VueJS.

Nothing bad happens when you are using JS in HTML. You are using CSS in HTML or SVG in HTML every day. This is a convenient way to write dev friendly templates.

IT Director in car selling company. In love with TypeScript, NodeJS and Angular.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store