angular.js - How angularjs dynamically changes the ng-model value, obtains the value entered in the input in the controller and combines the post to send to the background
为情所困2017-05-15 17:04:49
0
3
644
Use angularjs to process the values entered in the input and combine them to pass to the background. The number of input boxes is also dynamically obtained from the background
My approach is to process the data obtained in the background, add an item to each set of data in ng-repeat, and use it to loop for data binding, so that I can obtain the key-value pair corresponding to each item and encapsulate it
ng-model two-way data binding
$watch monitors value changes
It is recommended to read more documents
ng-model two-way data binding
$watch monitors value changes
It is recommended to read more documents
My approach is to process the data obtained in the background, add an item to each set of data in ng-repeat, and use it to loop for data binding, so that I can obtain the key-value pair corresponding to each item and encapsulate it