Custom form validation directive to compare two fields

后端 未结 6 813
借酒劲吻你
借酒劲吻你 2020-11-28 08:54

I\'m an angular newbie, and I\'m stumbling over something in how angular\'s form validation directives work.

I know that I can fairly easily add directives to in

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 09:50

    You do not need any directive. Just assign the "min" value of max to min-value. Like:

    
    
    

    And you do not need any customization.
    More: you can do min=" {{ field.min + 1}}"

提交回复
热议问题