I don't see any problem with that. No reason to do anything more complicated. You can't use *ngIf along with *ngFor, on the same div, but in your case it looks fine to me.