angular-ui/ui-select2 — pull request #229 by devilankur18 (2014-06-17 17:40:47+00:00)
Title: custom function for model2Select & select2Model

Pass the custom function inside the options for the angular select2 options

model2Select: function(model) {
return model.name;
},

select2Model: function(value) {
return {'id': value, 'name': value};
}