Formatting Numbers (observers / CP)

I’m not being able to solve this issue basically I have a model with some properties, I want to be able to maintain the numeric value in that model however sometimes I modify it in a text input and sometimes it gets modified from somewhere else through an observer of some other model.

I want it so that while you’re not editing the input it shows $ and when you’re editing it, it shows the numeric value.

Focus / Blur work just fine, the problem happens when I do the “add 1000” as the “fauxValue” doesn’t know about the change in value.

Sounds like a good use of computed properties + actions: JS Bin - Collaborative JavaScript Debugging

1 Like

Thanks jasonmit got it working with a very similair approach (I had to add some other caveats) but it works like a charm.