I'm trying to add paging to my pdf viewer in angular and I have the following code:
<input value="1" type="number" min="1" max="{{ totalPages }}" [(ngModel)]="page">/{{ totalPages }}
I want to set the default value of the input to be "1", but this does not work. If I take out
[(ngModel)]="page"
then it work perfectly fine. What is the cause of this?