{"action":"created","issue":{"url":"https://api.github.com/repos/isteven/angular-multi-select/issues/210","labels_url":"https://api.github.com/repos/isteven/angular-multi-select/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/isteven/angular-multi-select/issues/210/comments","events_url":"https://api.github.com/repos/isteven/angular-multi-select/issues/210/events","html_url":"https://github.com/isteven/angular-multi-select/issues/210","id":59294836,"number":210,"title":"Binding lost for outputModel","user":{"login":"mmsilviu","id":6492965,"avatar_url":"https://avatars.githubusercontent.com/u/6492965?v=3","gravatar_id":"","url":"https://api.github.com/users/mmsilviu","html_url":"https://github.com/mmsilviu","followers_url":"https://api.github.com/users/mmsilviu/followers","following_url":"https://api.github.com/users/mmsilviu/following{/other_user}","gists_url":"https://api.github.com/users/mmsilviu/gists{/gist_id}","starred_url":"https://api.github.com/users/mmsilviu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmsilviu/subscriptions","organizations_url":"https://api.github.com/users/mmsilviu/orgs","repos_url":"https://api.github.com/users/mmsilviu/repos","events_url":"https://api.github.com/users/mmsilviu/events{/privacy}","received_events_url":"https://api.github.com/users/mmsilviu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-02-27T21:11:21Z","updated_at":"2015-09-06T11:12:19Z","closed_at":null,"body":"The binding for outputModel is lost during refreshOutputModel() method call.\r\nIn order to clean and keep the data binding, the code can be changed from \r\n $scope.outputModel = [];\r\nto \r\n $scope.outputModel.length = 0;\r\n"},"comment":{"url":"https://api.github.com/repos/isteven/angular-multi-select/issues/comments/138070401","html_url":"https://github.com/isteven/angular-multi-select/issues/210#issuecomment-138070401","issue_url":"https://api.github.com/repos/isteven/angular-multi-select/issues/210","id":138070401,"user":{"login":"vramku5","id":10098553,"avatar_url":"https://avatars.githubusercontent.com/u/10098553?v=3","gravatar_id":"","url":"https://api.github.com/users/vramku5","html_url":"https://github.com/vramku5","followers_url":"https://api.github.com/users/vramku5/followers","following_url":"https://api.github.com/users/vramku5/following{/other_user}","gists_url":"https://api.github.com/users/vramku5/gists{/gist_id}","starred_url":"https://api.github.com/users/vramku5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vramku5/subscriptions","organizations_url":"https://api.github.com/users/vramku5/orgs","repos_url":"https://api.github.com/users/vramku5/repos","events_url":"https://api.github.com/users/vramku5/events{/privacy}","received_events_url":"https://api.github.com/users/vramku5/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T11:12:19Z","updated_at":"2015-09-06T11:12:19Z","body":"I think I have a similar scope problem. I am trying to use this within an ionic modal and the intended output-model scope variable is not populated.\r\n\r\nIf I add a display item {{output-model}} it shows fine. This suggests that it is updating a variable in some other scope. All other input fields (e.g. stepName) in the modal are updating properly.\r\n\r\nIs there any way to update the parent scope variable like in a close function?\r\n\r\n<div class=\"modal\">\r\n   <ion-content>\r\n      <form ng-submit=\"upsertStep()\">\r\n        <div class=\"list list-inset\">\r\n          <label class=\"item item-input\">\r\n            <span class=\"input-label\"> Name </span>\r\n            <input type=\"text\" placeholder=\"Step Name\" ng-model=\"activelyEditedStep.stepName\" autofocus>\r\n          </label>\r\n\r\n          <label class=\"item\">\r\n                <div class=\"input-label amp-modal-item-label col\">\r\n                    Step Units\r\n                </div>\r\n                <div isteven-multi-select    \r\n                    input-model=\"inputStepUnit\"    \r\n                    output-model=\"outputStepUnit\"\r\n                    button-label=\"name\"\r\n                    item-label=\"name\"\r\n                    tick-property=\"ticked\"\r\n                    orientation=\"vertical\"\r\n                    output-properties=\"name\"\r\n                    on-close=\"multiselectClose()\"\r\n                >\r\n                </div>\r\n          </label>\r\n\r\n        <span> {{outputStepUnit}} </span>\r\n        </div>\r\n    </form>\r\n  </ion-content>\r\n</div>\r\n\r\nAs many layers are involved, I am not sure how to make it into a plunker example.\r\n\r\nthanks"}}