{"action":"created","issue":{"url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/116","labels_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/116/comments","events_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/116/events","html_url":"https://github.com/rzajac/angularjs-slider/issues/116","id":104484999,"number":116,"title":"Problems with initial rendering and \"rzSliderForceRender\" - \"bullets are aligned at left side\"","user":{"login":"artgryn","id":7687036,"avatar_url":"https://avatars.githubusercontent.com/u/7687036?v=3","gravatar_id":"","url":"https://api.github.com/users/artgryn","html_url":"https://github.com/artgryn","followers_url":"https://api.github.com/users/artgryn/followers","following_url":"https://api.github.com/users/artgryn/following{/other_user}","gists_url":"https://api.github.com/users/artgryn/gists{/gist_id}","starred_url":"https://api.github.com/users/artgryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artgryn/subscriptions","organizations_url":"https://api.github.com/users/artgryn/orgs","repos_url":"https://api.github.com/users/artgryn/repos","events_url":"https://api.github.com/users/artgryn/events{/privacy}","received_events_url":"https://api.github.com/users/artgryn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rzajac/angularjs-slider/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T13:46:36Z","updated_at":"2015-09-03T07:48:44Z","closed_at":null,"body":"In some projects slider rendered wrong(bullets are aligned at left side) from the initial view join. Also well known bug with ng-show/ng-hide usage. This bug partly can be solved by using \"timeout\" and  \"rzSliderForceRender\". But that is ugly solution:\r\n\r\n1) \"timeout\" is not good to use in general\r\n2) \"rzSliderForceRender\" use require \"broadcast\" to \"$rootScope\" that is also not really recommended for AngularJS.\r\n\r\nSolution: introduce public interfaces \"*.redraw()\", \"*.reset()\".\r\n "},"comment":{"url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/comments/137366823","html_url":"https://github.com/rzajac/angularjs-slider/issues/116#issuecomment-137366823","issue_url":"https://api.github.com/repos/rzajac/angularjs-slider/issues/116","id":137366823,"user":{"login":"artgryn","id":7687036,"avatar_url":"https://avatars.githubusercontent.com/u/7687036?v=3","gravatar_id":"","url":"https://api.github.com/users/artgryn","html_url":"https://github.com/artgryn","followers_url":"https://api.github.com/users/artgryn/followers","following_url":"https://api.github.com/users/artgryn/following{/other_user}","gists_url":"https://api.github.com/users/artgryn/gists{/gist_id}","starred_url":"https://api.github.com/users/artgryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artgryn/subscriptions","organizations_url":"https://api.github.com/users/artgryn/orgs","repos_url":"https://api.github.com/users/artgryn/repos","events_url":"https://api.github.com/users/artgryn/events{/privacy}","received_events_url":"https://api.github.com/users/artgryn/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T07:48:44Z","updated_at":"2015-09-03T07:48:44Z","body":"I didn't check source code and general architecture but ideal situation for me when you can add it like a dependency to the controller:\r\n```\r\napp.module('yourApp').controller('controller1', ['$scope', '$state', '$rootScope', 'rZslider',\r\n        function($scope, $state, $rootScope, rZslider) {\r\n             rZslider.redraw();\r\n```\r\n\r\nOr add any other way to render slider after some events.\r\n\r\n"}}