I have a class called PracticeQuestionsListAPI which includes a list of users and page information. In my Angular component's HTML, I want to display a button only if the page state is not empty. How can I achieve this?
Here is what I have attempted so far, but it is not compiling:
<button *ngIf="!this.users['page-state'].isEmpty()" (click)="getNextPage()" id="next-page-button" class="btn content-div__button--blue btn-sm">Next Page</button>
I also tried using
*ngIf="!(this.questions['page-state'] =="")"
, but that did not compile either.