{"action":"opened","issue":{"url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-timepicker/issues/71","repository_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-timepicker","labels_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-timepicker/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-timepicker/issues/71/comments","events_url":"https://api.github.com/repos/rajeshwarpatlolla/ionic-timepicker/issues/71/events","html_url":"https://github.com/rajeshwarpatlolla/ionic-timepicker/issues/71","id":137032562,"number":71,"title":"unable to use setLabel and closeLabel together with ng-translate","user":{"login":"grapemix","id":480406,"avatar_url":"https://avatars.githubusercontent.com/u/480406?v=3","gravatar_id":"","url":"https://api.github.com/users/grapemix","html_url":"https://github.com/grapemix","followers_url":"https://api.github.com/users/grapemix/followers","following_url":"https://api.github.com/users/grapemix/following{/other_user}","gists_url":"https://api.github.com/users/grapemix/gists{/gist_id}","starred_url":"https://api.github.com/users/grapemix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grapemix/subscriptions","organizations_url":"https://api.github.com/users/grapemix/orgs","repos_url":"https://api.github.com/users/grapemix/repos","events_url":"https://api.github.com/users/grapemix/events{/privacy}","received_events_url":"https://api.github.com/users/grapemix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-28T09:30:01Z","updated_at":"2016-02-28T09:30:01Z","closed_at":null,"body":"Hi,\r\n\r\nThanks for the hardworking for this plugin, it is awesome.\r\n\r\nI do have problem to use the setLabel and closeLabel settings together with ng-translate. ng-translate will return a promise which means that I cannot get the result immediately(when the directive being init/render). I tried the following two methods, but failed.\r\n\r\n1) Put the entire $scope.timePickerObject = {...} inside the ng-translate promise\r\nResult: ionic-timepicker return error because timePickerObject is missing during init\r\n\r\n2) Put the entire $scope.timePickerObject = {...} outside the ng-translate promise, but keeping $scope.timePickerObject.setLabel and closeLabel inside the ng-translate promise\r\nResult: ionic-timepicker runs fine but setLabel and closeLabel settings are not used since the link fxn only runs once at the beginning and there's where setLabel and closeLabel being aside.\r\n\r\nAny good idea to resolve this problem? Adding a watch for setLabel and closeLabel will be pretty inefficient though.\r\n\r\nThanks."}}