Dynamically add $watch
问题 I have a JSON dataset that each row includes an input value, a small block of JavaScript code used to calculate and a subtotal value that is the result of the input value after an eval() preforms the calculation. The dataset will contain one or more rows. Each input will be repeated onto the page in HTML and a sum of the subtotals will be shown to the user as a total value along with each separate subtotal value. I tried to use $watch and add one for each row in the repeater but I can't seem