{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/200","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/200/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/200/events","html_url":"https://github.com/formly-js/angular-formly/issues/200","id":60670544,"number":200,"title":"bootsrap select method returns array instead of objects","user":{"login":"gowram","id":551819,"avatar_url":"https://avatars.githubusercontent.com/u/551819?v=3","gravatar_id":"","url":"https://api.github.com/users/gowram","html_url":"https://github.com/gowram","followers_url":"https://api.github.com/users/gowram/followers","following_url":"https://api.github.com/users/gowram/following{/other_user}","gists_url":"https://api.github.com/users/gowram/gists{/gist_id}","starred_url":"https://api.github.com/users/gowram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowram/subscriptions","organizations_url":"https://api.github.com/users/gowram/orgs","repos_url":"https://api.github.com/users/gowram/repos","events_url":"https://api.github.com/users/gowram/events{/privacy}","received_events_url":"https://api.github.com/users/gowram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-11T14:53:03Z","updated_at":"2015-03-11T16:38:40Z","closed_at":null,"body":"I tried to use formly with bootstrap select methods, the result i am getting as array instead of objects such as...\r\n```javascript\r\n[Resource, $promise: Promise, $resolved: true, organisationId: \"2\", name: \"clarie\"]\r\n```\r\nis this normal behavior?\r\n\r\nthese are my fields.\r\n\r\n```javascript\r\n\r\nvm.formFields = [\r\n        {\r\n          key: 'name',\r\n          type: 'input',\r\n          templateOptions: {\r\n            type:'text',\r\n            label: 'Name',\r\n            required: true\r\n          }\r\n        },\r\n       {\r\n        key:'organisationId',\r\n        type:'select',\r\n        templateOptions: {\r\n          label: 'Choose orgainsation',\r\n          required:true,\r\n          options:$scope.organisations\r\n        }\r\n       }\r\n      ];\r\n```"},"comment":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/comments/78301650","html_url":"https://github.com/formly-js/angular-formly/issues/200#issuecomment-78301650","issue_url":"https://api.github.com/repos/formly-js/angular-formly/issues/200","id":78301650,"user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T16:38:40Z","updated_at":"2015-03-11T16:38:40Z","body":"So, currently formlyBootstrap's select type doesn't support selecting the entire object as the model value. Feel free to submit a PR to support this or simply create your own select type (it's very easy to do).\r\n\r\nAs far as that array, I have no idea where that's coming from. If you look at the examples, that's not what is happening. Could you [create a jsbin](http://jsbin.com/biqesi/edit) that reproduces the issue?"}}