Difference between Angular 2 & Angular 4 (What's New) 2017

Angular 4 doesn't change that much as compare to Angular 2. They have deprecated some old features and added some new however Angular 4 shouldn't have any breaking changes. We can still use deprecated features as it is deprecated not removed but for safe side if possible use Angular 4 as in future it will be removed completely.

So many people was confused even I that why Angular 4 and why not Angular 3? It's not so complicated, the reason I found like because of their internal versioning conflicts they skipped Angular 3 and moved on Angular 4.

Change 1: They have changed *ngif conditional pattern and made it very clear If Else pattern.

See example below:

Angular 2:*ngIf (Depricated):

<div *ngIf="showText">If part to display text</div><div *ngIf="!showText">Else part to display text</div>Angular 4:*ngIf (New):<div *ngIf="showText; else elsePart">If part to display text</div><ng-template #elsePart><p>Else part to display text</p></ng-template>