bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Editable input (WIP)

Open hallister opened this issue 13 years ago • 1 comments

I'm currently working on an editable input (inline text that turns into a form field when clicked on) but have run into a bind. The code is complete (although, without tests) at hall5714/angular-ui-bootstrap@882d0884d473df2ce3c4e35dc954cc067ca2aeea.

The big issue here is that the editable has to have an isolate scope (form validation requires compiling against the scope, and we don't want to be doing that in a controller scope!) and update the model. Doing it this way (=ngModel) breaks the two-way bindings (watchers on primitives, filters etc). So a few questions:

Is there any interest in this (from anyone, but ideally the core developers)?

Would this directive still be considered useful given the caveat above?

Of course, if anyone has a suggestion for the issue above please let me know! I can't PR this now since tests aren't written, I just wanted to feedback before I invest anymore time into it (in my use case, the caveat is fine).

hallister avatar Aug 06 '13 21:08 hallister

Closing this for now, wasn't aware that ngModel could take a $parent scope to avoid breaking the filter chain. Will write tests and PR my changes in a day or two.

hallister avatar Aug 07 '13 18:08 hallister