my template have something like...
<div> {{ (profile$ | async).username}}</div>
<div> {{ (profile$ | async).email}}</div>
Is there a way to assign (profile | async) to a local variable? having to type it out for every single field is bad for readability.
Thanks.
question from:https://stackoverflow.com/questions/39682546/local-variable-in-template-for-async-pipe-angular-2