NgModelController
provides $formatters
for model -> view transformations. I am playing with it in this fiddle. It works fine after I make changes to the model through another input, but my formatter isn't called when the value is initially populated. Is there a way to make this happen?
Whenever the $modelValue changes, all the $formatters are called. So after the call to read(), set the $modelValue to kick the $formatters to run:
read(); // initialize
ngModel.$modelValue = ''; // causes $formatters to run
See also this google group post.