{"action":"opened","issue":{"url":"https://api.github.com/repos/rubenv/angular-select2/issues/40","repository_url":"https://api.github.com/repos/rubenv/angular-select2","labels_url":"https://api.github.com/repos/rubenv/angular-select2/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/rubenv/angular-select2/issues/40/comments","events_url":"https://api.github.com/repos/rubenv/angular-select2/issues/40/events","html_url":"https://github.com/rubenv/angular-select2/issues/40","id":141936852,"number":40,"title":"TypeError: d.select2 is not a function","user":{"login":"didadan","id":12377678,"avatar_url":"https://avatars.githubusercontent.com/u/12377678?v=3","gravatar_id":"","url":"https://api.github.com/users/didadan","html_url":"https://github.com/didadan","followers_url":"https://api.github.com/users/didadan/followers","following_url":"https://api.github.com/users/didadan/following{/other_user}","gists_url":"https://api.github.com/users/didadan/gists{/gist_id}","starred_url":"https://api.github.com/users/didadan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didadan/subscriptions","organizations_url":"https://api.github.com/users/didadan/orgs","repos_url":"https://api.github.com/users/didadan/repos","events_url":"https://api.github.com/users/didadan/events{/privacy}","received_events_url":"https://api.github.com/users/didadan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-18T17:58:11Z","updated_at":"2016-03-18T17:58:11Z","closed_at":null,"body":"Hi Ruben, this might be similar to #39.\r\n\r\nI followed your instruction and used the current version. It always brings up the same error. Do you have any clue what could cause this?\r\n\r\nVersions:\r\nAngular: 1.4.7\r\nrubenv/angular-select2: 1.4.3 and 1.4.2\r\n(with and without select2: 3.5.4, 3.5.2 and 4.0.2)\r\n\r\nBasically the code is: angular module: `'rt.select2'`\r\n`<select2 ng-model=\"obj.field\" s2-options=\"val.id as val.name for val in values\" options=\"{ allowClear: true }\"></select2>`"}}