AngularJS ng-true-value to array, not obj


AngularJS(1). I have this [ng-true-value] that on POST sends :
deposit_payment_method: {4: “4”, 5: “5”}

but I want the Output to be an array of the Values, i.e.
deposit_payment_method: [“4”, “5”].

Is it possible using the [ng-true-value]?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.