{"action":"created","issue":{"url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/192","labels_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/192/comments","events_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/192/events","html_url":"https://github.com/rzajac/angularjs-slider/issues/192","id":120632211,"number":192,"title":"StepsArray won't update Ceil and Floor.","user":{"login":"voidstarfire","id":6940726,"avatar_url":"https://avatars.githubusercontent.com/u/6940726?v=3","gravatar_id":"","url":"https://api.github.com/users/voidstarfire","html_url":"https://github.com/voidstarfire","followers_url":"https://api.github.com/users/voidstarfire/followers","following_url":"https://api.github.com/users/voidstarfire/following{/other_user}","gists_url":"https://api.github.com/users/voidstarfire/gists{/gist_id}","starred_url":"https://api.github.com/users/voidstarfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voidstarfire/subscriptions","organizations_url":"https://api.github.com/users/voidstarfire/orgs","repos_url":"https://api.github.com/users/voidstarfire/repos","events_url":"https://api.github.com/users/voidstarfire/events{/privacy}","received_events_url":"https://api.github.com/users/voidstarfire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-06T12:45:02Z","updated_at":"2015-12-06T13:06:18Z","closed_at":null,"body":"I'm changing the stepsArray dynamically after a http call, when I do so the floor and ceil slider values don't change even though it says in the documentation that they should.\r\n\r\nI cannot get the ceil and floor to change with stepsArray. Even if I specify it manually.\r\n\r\nOn HTTP Call, correct.\r\n<img width=\"1127\" alt=\"screen shot 2015-12-06 at 1 43 43 pm\" src=\"https://cloud.githubusercontent.com/assets/6940726/11613410/71689eda-9c1f-11e5-9ac2-603814e875af.png\">\r\n\r\nFirst drag, incorrect.\r\n<img width=\"1141\" alt=\"screen shot 2015-12-06 at 1 43 51 pm\" src=\"https://cloud.githubusercontent.com/assets/6940726/11613412/7fb8249c-9c1f-11e5-9b77-80b4ab270bdc.png\">\r\n\r\nBack to the start, it's reset.\r\n<img width=\"1121\" alt=\"screen shot 2015-12-06 at 1 43 58 pm\" src=\"https://cloud.githubusercontent.com/assets/6940726/11613413/88e8c58a-9c1f-11e5-9021-8e6f48316cca.png\">\r\n\r\n\r\nI'm using:\r\n\r\n```\r\n<rzslider\r\n    rz-slider-model=\"sliderMin\"\r\n    rz-slider-high=\"sliderMax\"\r\n    rz-slider-step-array=\"sliderSteps\"\r\n    rz-slider-options=\"slider.options\">\r\n</rzslider>\r\n```\r\n\r\n```\r\n//Range Slider\r\n    $scope.sliderSteps = [0, 1000]; //Default.\r\n    $scope.sliderMax = $scope.sliderSteps[$scope.sliderSteps.length - 1];\r\n    $scope.sliderMin = 0;\r\n    $scope.slider = {\r\n      options: {\r\n        hideLimitLabels:false,\r\n        translate: function(value) {\r\n            return UserInfoService.getCurrencySymbol() + value; //TODO add currency multiplication here.\r\n        }\r\n      }\r\n    };\r\n\r\n....\r\n....\r\n\r\n//Set the steps after http call\r\nvar steps = 90;\r\nvar newSteps = [];\r\nfor (var i = 0; i < steps; i++) {\r\n    newSteps.push(Math.round(min + ((max) * (i / steps))));\r\n};\r\n//Concat so angular updates as reference.\r\n$scope.sliderSteps = [].concat(newSteps);\r\nconsole.log($scope.sliderSteps);\r\nconsole.log('min: ' + min + '| max: ' + max);\r\n```\r\n\r\nThe console log results:\r\n```\r\n[129, 162, 196, 229, 262, 296, 329, 362, 396, 429, 462, 496, 529, 562, 596, 629, 662, 696, 729, 762, 796, 829, 862, 896, 929, 962, 996, 1029, 1062, 1096, 1129, 1162, 1196, 1229, 1262, 1296, 1329, 1362, 1396, 1429, 1462, 1496, 1529, 1562, 1596, 1629, 1662, 1696, 1729, 1762, 1796, 1829, 1862, 1896, 1929, 1962, 1996, 2029, 2062, 2096, 2129, 2162, 2196, 2229, 2262, 2296, 2329, 2362, 2396, 2429, 2462, 2496, 2529, 2562, 2596, 2629, 2662, 2696, 2729, 2762, 2796, 2829, 2862, 2896, 2929, 2962, 2996, 3029, 3062, 3096]\r\nmin: 129| max: 3000\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/comments/162314177","html_url":"https://github.com/rzajac/angularjs-slider/issues/192#issuecomment-162314177","issue_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/192","id":162314177,"user":{"login":"ValentinH","id":2678610,"avatar_url":"https://avatars.githubusercontent.com/u/2678610?v=3","gravatar_id":"","url":"https://api.github.com/users/ValentinH","html_url":"https://github.com/ValentinH","followers_url":"https://api.github.com/users/ValentinH/followers","following_url":"https://api.github.com/users/ValentinH/following{/other_user}","gists_url":"https://api.github.com/users/ValentinH/gists{/gist_id}","starred_url":"https://api.github.com/users/ValentinH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValentinH/subscriptions","organizations_url":"https://api.github.com/users/ValentinH/orgs","repos_url":"https://api.github.com/users/ValentinH/repos","events_url":"https://api.github.com/users/ValentinH/events{/privacy}","received_events_url":"https://api.github.com/users/ValentinH/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T13:06:18Z","updated_at":"2015-12-06T13:06:18Z","body":"I'm not sure of what you are doing but stepsArray should be in the options object."}}