How to display only single validation error at a time

后端 未结 6 1654
失恋的感觉
失恋的感觉 2021-02-08 02:35

I have this code to which displaying errors on my form


&         


        
6条回答
  •  太阳男子
    2021-02-08 03:12

    Angular2 behind the scene checks the status of the control and reacts accordingly. So if you don't want to have more validation at a time, you can logically play with AND(&&) or/and OR(||) or/and NOT(!) operators.

提交回复
热议问题