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};
    }