{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/6020","labels_url":"https://api.github.com/repos/angular/material/issues/6020/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/6020/comments","events_url":"https://api.github.com/repos/angular/material/issues/6020/events","html_url":"https://github.com/angular/material/issues/6020","id":119846537,"number":6020,"title":"md-select (with multiple attribute) options not updating when scope value changes","user":{"login":"zilions","id":6722591,"avatar_url":"https://avatars.githubusercontent.com/u/6722591?v=3","gravatar_id":"","url":"https://api.github.com/users/zilions","html_url":"https://github.com/zilions","followers_url":"https://api.github.com/users/zilions/followers","following_url":"https://api.github.com/users/zilions/following{/other_user}","gists_url":"https://api.github.com/users/zilions/gists{/gist_id}","starred_url":"https://api.github.com/users/zilions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilions/subscriptions","organizations_url":"https://api.github.com/users/zilions/orgs","repos_url":"https://api.github.com/users/zilions/repos","events_url":"https://api.github.com/users/zilions/events{/privacy}","received_events_url":"https://api.github.com/users/zilions/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T01:25:14Z","updated_at":"2015-12-02T01:26:44Z","closed_at":null,"body":"I have a very basic `md-select` element with only 3 options. I allow a user to select multiple options via the `multiple` attribute.\r\n\r\nI have a button that removes the second value, only if it is selected. The value is removed correctly from the scope variable, although the changes are not applied to the `md-select` element?\r\n\r\n**Javascript:**\r\n\r\n    $scope.selectedNumbers = [];\r\n\r\n    $scope.numbers = [{\r\n       num: 1\r\n    }, {\r\n       num: 2\r\n    }, {\r\n       num: 3\r\n    }];\r\n\r\n    $scope.deselectTwo = function() {        \r\n      if ($scope.selectedNumbers.indexOf(2) > -1) {          \r\n         $scope.selectedNumbers.splice(1, 1);\r\n      }\r\n    };\r\n\r\n**HTML:**\r\n\r\n    <md-input-container>\r\n      <label>Numbers</label>\r\n      <md-select ng-model=\"selectedNumbers\" multiple>\r\n        <md-option ng-repeat=\"number in numbers\" ng-value=\"{{number.num}}\">\r\n          {{number.num}}\r\n        </md-option>\r\n      </md-select>\r\n    </md-input-container>\r\n\r\n    <md-button class=\"md-raised md-primary\" ng-click=\"deselectTwo()\">\r\n      Deselect 2\r\n    </md-button>\r\n\r\n    <div>\r\n      Ng-repeat for '$scope.selectedNumbers':\r\n      <span ng-repeat=\"number in selectedNumbers\">\r\n        {{number}}\r\n      </span>\r\n    </div>\r\n\r\n\r\nTo replicate the issue, select \"1\" and \"2\" from the dropdown. Then click the \"Deselect 2\" button to see it removed from the ng-repeat, but not from the selected options in the dropdown.\r\n\r\nWORKING EXAMPLE: http://codepen.io/anon/pen/jWNrjB?editors=101"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/161149938","html_url":"https://github.com/angular/material/issues/6020#issuecomment-161149938","issue_url":"https://api.github.com/repos/angular/material/issues/6020","id":161149938,"user":{"login":"zilions","id":6722591,"avatar_url":"https://avatars.githubusercontent.com/u/6722591?v=3","gravatar_id":"","url":"https://api.github.com/users/zilions","html_url":"https://github.com/zilions","followers_url":"https://api.github.com/users/zilions/followers","following_url":"https://api.github.com/users/zilions/following{/other_user}","gists_url":"https://api.github.com/users/zilions/gists{/gist_id}","starred_url":"https://api.github.com/users/zilions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilions/subscriptions","organizations_url":"https://api.github.com/users/zilions/orgs","repos_url":"https://api.github.com/users/zilions/repos","events_url":"https://api.github.com/users/zilions/events{/privacy}","received_events_url":"https://api.github.com/users/zilions/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T01:26:44Z","updated_at":"2015-12-02T01:26:44Z","body":"I've noticed that if you replace the `splice()` with an assignment (e.g. `$scope.selectedNumbers = [1]`) then it works as expected. There must be an issue to why `splice()` is not working..."}}