I am trying to access the value in node js using req.body which is in ng-model, actually my ng-model is having a angular js filter,I need to get that filter value from the input field in node js using req.body, I paste my ng-model code snippet here, please help me to resolve
<input type="disable" ng-disabled="true" class="form-control"
name="count" ng-model="table.fields | mysum">
angular filter
app.filter('mysum', function() {
return function(items) {
var sum = 0;
items.forEach(function(item) {
if (item.item_count) {
sum += item.item_count;
}
})
return sum;
}
})
ng-model
with a filter --ng-model
needs to bind to property.$watch
for the model change and update the model value