driftyco/ionic — pull request #411 by matiboy (2014-01-14 01:05:20+00:00)
Title: (feature #405) Clear button in input

Created a directive that does this. Created an example (basically a copy of profile) with an input to showcase this.
I'd like your opinion on the following:

- I'm using ngModel 's setViewValue, then trigger $digest then $render(). Do you guys know of a better/cleaner way of combining those 3 steps?
- as per the radio directive, this one is bound to 'click'. Will that be good enough for mobile?
- afaik, the two ways to put the "x" there is by either adding a wrapping div, or putting a background and on click checking position of click. I went for the first, really don't like the second. Do you know any alternative or is this a good way to go?

Oh and my CSS is not really good so might need some tweaking :)