Skip to content

Instantly share code, notes, and snippets.

need to support

  • bi-directional model to select2 selected object changes
  • select2 data-set changes
  • select2 object to ng-model mapping that supports attributes, not necessarily the whole object, similar to <option ng-repeat value={{obj.attribute}}>{{obj.humanReadableAttribute}}</option>
  • should work for both multi and single-value selects
  • should support optgroups