1<div *ngIf="user$ | async as user">
2 <user-profile
3 [user]="user.profile">
4 </user-profile>
5 <user-messages
6 [user]="user.messages">
7 </user-messages>
8</div>
9<!--
10In Angular2+ it is possible to use ngif and async pipe without headaches!
11When the user observable pushes a value it gets stored in the user variable.
12Can use user.stuff from then on.
13-->