angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Support ++ and -- in Angular expressions?

Open gsklee opened this issue 12 years ago • 3 comments

Is it intentional that we have to write x = x + 1 instead of x++ in Angular expressions? If not, perhaps add them in?

gsklee avatar Dec 26 '13 04:12 gsklee

I think parsing uni-operator like ++ -- is much harder and needs lots of extra work.

mofas avatar Dec 26 '13 16:12 mofas

We already have support for unary operators.. It wouldn't be hard to support pre-inc/pre-dec, but it might not be really worthwhile

caitp avatar Dec 26 '13 16:12 caitp

Closing since this hasn't had any activity in 3 months and it seems unlikely that support will be added.

linclark avatar Mar 24 '14 15:03 linclark