I have an observable creature Userswith a property isLoading, so this gives the expected result:
{{ (user$ | async).isLoading }}
I would like to be able to use this property isLoadingin an HTML attribute, for example:
<button md-raised-button type="submit" [disabled]="user$.isLoading">Login</button>
but no syntax that I use seems to do the trick. How do you subscribe to observable like in HTML attribute?
source
share