How to validate table row data with Angular?

后端 未结 4 1691
醉梦人生
醉梦人生 2021-02-09 16:42

I have table with ng-repeat for table rows. I want to make inline editing and validation of data from single row, but it is impossible to use for

4条回答
  •  我寻月下人不归
    2021-02-09 17:09

    NG-Form works on elements that are not a HTML form. So, you should be able to use the built ng-form validations inside a table. It seems to track the forms properly per row for me.

    https://docs.angularjs.org/api/ng/directive/form

     
       {{market.id}}
       
         
       
       
        
      
      
        
      
    
    

提交回复
热议问题