{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/11040","labels_url":"https://api.github.com/repos/angular/angular.js/issues/11040/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/11040/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/11040/events","html_url":"https://github.com/angular/angular.js/issues/11040","id":57385153,"number":11040,"title":"Select ng-transclude","user":{"login":"YourDeveloperFriend","id":1808286,"avatar_url":"https://avatars.githubusercontent.com/u/1808286?v=3","gravatar_id":"","url":"https://api.github.com/users/YourDeveloperFriend","html_url":"https://github.com/YourDeveloperFriend","followers_url":"https://api.github.com/users/YourDeveloperFriend/followers","following_url":"https://api.github.com/users/YourDeveloperFriend/following{/other_user}","gists_url":"https://api.github.com/users/YourDeveloperFriend/gists{/gist_id}","starred_url":"https://api.github.com/users/YourDeveloperFriend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YourDeveloperFriend/subscriptions","organizations_url":"https://api.github.com/users/YourDeveloperFriend/orgs","repos_url":"https://api.github.com/users/YourDeveloperFriend/repos","events_url":"https://api.github.com/users/YourDeveloperFriend/events{/privacy}","received_events_url":"https://api.github.com/users/YourDeveloperFriend/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20forms","name":"component: forms","color":"7B947B"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/27","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/27/labels","id":489171,"number":27,"title":"Backlog","description":"Holds the backlog of issues and pull requests that have been triaged.\r\n\r\nBefore assigning items to this milestone they should be labelled, at the very least with the correct \"type\" label (i.e. \"issue\", \"pr\", \"bug\", \"regression\", \"chore\", \"docs\", etc).  Preferably you should also check for duplicate issues/PRs, note CLA status and assign \"complexity\" and \"impact\" labels too.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":726,"closed_issues":748,"state":"open","created_at":"2013-11-18T23:30:35Z","updated_at":"2015-02-12T09:36:55Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-11T22:08:50Z","updated_at":"2015-02-12T16:56:26Z","closed_at":null,"body":"On version 1.3.13, ng-transcluding options into a select causes a thrown error.\r\n\r\nThe relevant code is [the following](https://github.com/angular/angular.js/blob/master/src/ng/directive/select.js#L73)\r\n\r\n```Javascript\r\n  // Write the value to the select control, the implementation of this changes depending\r\n  // upon whether the select can have multiple values and whether ngOptions is at work.\r\n  self.writeValue = function writeSingleValue(value) {\r\n    if (self.hasOption(value)) {\r\n      self.removeUnknownOption();\r\n      $element.val(value);\r\n      if (value === '') self.emptyOption.prop('selected', true); // to make IE9 happy\r\n    } else {\r\n      if (isUndefined(value) && self.emptyOption) {\r\n        $element.val('');\r\n      } else {\r\n        self.renderUnknownOption(value);\r\n      }\r\n    }\r\n  };\r\n```\r\n\r\nWith `ng-transclude`, `emptyOption` never gets initialized (I'm assuming because there are no options on `link`, which occurs before `ng-transclude`.\r\n\r\nCheck out this [jsfiddle](http://jsfiddle.net/8y5cswwu/1/)\r\n\r\nIt doesn't seem to have any averse affects on my program, but it is annoying clutter to my console."},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/74107411","html_url":"https://github.com/angular/angular.js/issues/11040#issuecomment-74107411","issue_url":"https://api.github.com/repos/angular/angular.js/issues/11040","id":74107411,"user":{"login":"YourDeveloperFriend","id":1808286,"avatar_url":"https://avatars.githubusercontent.com/u/1808286?v=3","gravatar_id":"","url":"https://api.github.com/users/YourDeveloperFriend","html_url":"https://github.com/YourDeveloperFriend","followers_url":"https://api.github.com/users/YourDeveloperFriend/followers","following_url":"https://api.github.com/users/YourDeveloperFriend/following{/other_user}","gists_url":"https://api.github.com/users/YourDeveloperFriend/gists{/gist_id}","starred_url":"https://api.github.com/users/YourDeveloperFriend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YourDeveloperFriend/subscriptions","organizations_url":"https://api.github.com/users/YourDeveloperFriend/orgs","repos_url":"https://api.github.com/users/YourDeveloperFriend/repos","events_url":"https://api.github.com/users/YourDeveloperFriend/events{/privacy}","received_events_url":"https://api.github.com/users/YourDeveloperFriend/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T16:56:26Z","updated_at":"2015-02-12T16:56:26Z","body":"[plnkr](http://plnkr.co/edit/PZB8AEtnsmi0oAtjIyEP?p=preview)"}}