AngularJS <input> validation with no enclosing <form>

前端 未结 3 1005
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 14:24

Is it possible in Angular to validate a single, isolated in a similar way the forms are validated? I\'m thinking about something like this:

<
3条回答
  •  春和景丽
    2020-12-07 14:52

    Building on Silvio Lucas' answer, if you are iterating in a loop and need to be able to interpolate form names and valid states:

提交回复
热议问题