Two wan binding

hi i want to check condition for two way binding if my value is >3 it should not update in api instead it update 3 or less then 3 which we enter through ngmodel can anyone now how to achieve this value here 3 is getting through api

I would switch from binding ngModel to using a FormControl, instead of trying to reinvent the validation wheel.

i am not using form here

You don’t have to use an HTML <form> to use Angular’s FormControls.

but in ts file it should declare form with controls na? but i am not using this

I understand that. I am suggesting that you start.