morrisjdev / ng-metro4

Angular components for Metro4 UI library in modern ui style.
https://morrisjdev.github.io/ng-metro4/
MIT License
38 stars 12 forks source link

Spinner min-value not workin when set min-value="0" #8

Closed nsbrabelo closed 4 years ago

nsbrabelo commented 4 years ago

When i set min-value = 0 the spinner alow down to infinity and beyond.

this is my source: <m4-spinner [disabled]="blockItem(product)" (change)="addItemToCart(product, index)" [(ngModel)]="product.quantity" [min-value]="0" [max-value]="cart.flavors">

i try set a variable min with value 0 in my TS file and set this variable in bind, but not working too. when i set min-value 1 he work, but with 0 not.

morrisjdev commented 4 years ago

Thank you for reporting this. I'll take a look into it.

morrisjdev commented 4 years ago

Thank you again for reporting this. The problem is fixed in version 2.0.1