{"action":"closed","issue":{"url":"https://api.github.com/repos/seiyria/angular-bootstrap-slider/issues/104","labels_url":"https://api.github.com/repos/seiyria/angular-bootstrap-slider/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/seiyria/angular-bootstrap-slider/issues/104/comments","events_url":"https://api.github.com/repos/seiyria/angular-bootstrap-slider/issues/104/events","html_url":"https://github.com/seiyria/angular-bootstrap-slider/issues/104","id":116364864,"number":104,"title":"Detect change in range slider","user":{"login":"diegoaguilar","id":2483678,"avatar_url":"https://avatars.githubusercontent.com/u/2483678?v=3","gravatar_id":"","url":"https://api.github.com/users/diegoaguilar","html_url":"https://github.com/diegoaguilar","followers_url":"https://api.github.com/users/diegoaguilar/followers","following_url":"https://api.github.com/users/diegoaguilar/following{/other_user}","gists_url":"https://api.github.com/users/diegoaguilar/gists{/gist_id}","starred_url":"https://api.github.com/users/diegoaguilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegoaguilar/subscriptions","organizations_url":"https://api.github.com/users/diegoaguilar/orgs","repos_url":"https://api.github.com/users/diegoaguilar/repos","events_url":"https://api.github.com/users/diegoaguilar/events{/privacy}","received_events_url":"https://api.github.com/users/diegoaguilar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T16:03:30Z","updated_at":"2015-11-11T16:05:36Z","closed_at":"2015-11-11T16:05:36Z","body":"When using a range slider, I want to get which, either start or end has changed. I'm trying to bind events or use a `$watch`  but it's getting buggy to know which is the one being changed:\r\n\r\nUsing a `$watch` this is what I try:\r\n\r\n\t$scope.$watch('rangeSlider.value', function (newValue,oldValue) {\r\n\t\tvar changed = newValue[0] === oldValue[0] ? newValue[1] : newValue[0];\r\n                ....\r\n                ....\r\n\t});\r\n\r\nBut as I say, it's not reliable. Would you suggest any alternative?"}}