30 seconds of angular
Star
✨✨ New to Angular? Check out interactive Angular Codelab ✨✨

ngIf else

*ngIf directive also supports else statement.

<div *ngIf="isLoading; else notLoading">loading...</div>

<ng-template #notLoading>not loading</ng-template>

Interactive demo