is there any way to format numbers in Angular ?
I have this
applyIfRisk = function(slip) {
_.assign(slip, {
risk: slip.risk,
win: Math.ceil(slip.risk * 1.67)
});
}, applyIfWin = function(slip) {
_.assign(slip, {
risk: Math.ceil(slip.win * 1.11),
win: slip.win
});
}
which is attach to this html
<input ng-model="slip.win"
ng-change="riskWinCalculations(slip, 'WINIFBET')">
<input ng-model="slip.risk"
ng-change="riskWinCalculations(slip, 'RISKIFBET')">
but it is returning... let's say: 100000
, and I need: 100,000
someone told me to use {{slip.win | number}}
but I am not able to use it because this is a model, not an expression.
what should I do here ?
UPDATE
some post that my question is a duplicate of another which is not, the question is almost the same, but the answers doesn't help me.