cht-core icon indicating copy to clipboard operation
cht-core copied to clipboard

Enable 2-way binding for select2 fields (non-enketo)

Open estellecomment opened this issue 8 years ago • 2 comments

A couple places (like edit-user.js controller) use select2 fields outside of enketo. They don't have to way binding, they fetch the value on form submit using jquery. That's more complicated code, and it makes testing more messy.

Make a select2 directive, or maybe a ng-bind with a setter, and remove the jquery.

estellecomment avatar May 04 '17 12:05 estellecomment

There are libraries that do this for us, eg: https://github.com/angular-ui/ui-select

garethbowen avatar Jul 03 '17 08:07 garethbowen

Hi @dianabarsan,

This ticket has not been touched in 90 days. Is it still relevant?

(See triaging old issues for more detail)

medic-bot avatar Feb 21 '18 11:02 medic-bot