In my component I'm getting data from my service:
ngOnInit() {
this._sharedService.
getReceiptItem().takeUntil(this.ngUnsubscribe).
subscribe(products => this.receiptItems = products);
}
So how can I disable a button if my array this.receiptItems has any items?
I've tried something like this:
<div class="top-left">
<button [disabled]="receiptItems.count>0" type="button" [routerLink]="['/administration']"><i class="fas fa-bars fa-fw"></i></button>
</div>
But obliviously that is not a solution..
Thanks