Min and max value of input in angular4 application

后端 未结 9 1148
温柔的废话
温柔的废话 2020-12-08 13:01

I have an angular4 application with a form. In this one I have an input to enter a percentage. So, I want to block the input with value between 0 and 100. I tried to add

9条回答
  •  猫巷女王i
    2020-12-08 13:51

    Here is the solution :

    This is kind of hack , but it will work

    
    
    
    Number should be between 0 and 100

    Here is the link to the plunker , please have a look.

提交回复
热议问题