angular/angular.js — pull request #1723 by langdonx (2012-12-18 19:35:13+00:00)
Title: Update src/ng/directive/input.js

More information here:
- http://stackoverflow.com/questions/13925462/angularjs-reverse-checkbox-state

It seems like a simple use case that could be implemented with 1 elegant change (line 646).

I went with the change to $formatters instead of changing the trueValue/falseValue detection on lines 632-633, because this seemed less janky.

I chose not to String(trueValue) to save some unnecessary casting. I believe this handles all scenarios.