{"action":"created","issue":{"url":"https://api.github.com/repos/machineboy2045/angular-selectize/issues/83","labels_url":"https://api.github.com/repos/machineboy2045/angular-selectize/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/machineboy2045/angular-selectize/issues/83/comments","events_url":"https://api.github.com/repos/machineboy2045/angular-selectize/issues/83/events","html_url":"https://github.com/machineboy2045/angular-selectize/issues/83","id":89939980,"number":83,"title":"How to reload options?","user":{"login":"elgs","id":55955,"avatar_url":"https://avatars.githubusercontent.com/u/55955?v=3","gravatar_id":"","url":"https://api.github.com/users/elgs","html_url":"https://github.com/elgs","followers_url":"https://api.github.com/users/elgs/followers","following_url":"https://api.github.com/users/elgs/following{/other_user}","gists_url":"https://api.github.com/users/elgs/gists{/gist_id}","starred_url":"https://api.github.com/users/elgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elgs/subscriptions","organizations_url":"https://api.github.com/users/elgs/orgs","repos_url":"https://api.github.com/users/elgs/repos","events_url":"https://api.github.com/users/elgs/events{/privacy}","received_events_url":"https://api.github.com/users/elgs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-21T17:50:48Z","updated_at":"2015-06-23T08:11:30Z","closed_at":null,"body":"I want to programmatically reload the options when the underlying data changed. Is there a way to reload the options? Thanks."},"comment":{"url":"https://api.github.com/repos/machineboy2045/angular-selectize/issues/comments/114399975","html_url":"https://github.com/machineboy2045/angular-selectize/issues/83#issuecomment-114399975","issue_url":"https://api.github.com/repos/machineboy2045/angular-selectize/issues/83","id":114399975,"user":{"login":"elgs","id":55955,"avatar_url":"https://avatars.githubusercontent.com/u/55955?v=3","gravatar_id":"","url":"https://api.github.com/users/elgs","html_url":"https://github.com/elgs","followers_url":"https://api.github.com/users/elgs/followers","following_url":"https://api.github.com/users/elgs/following{/other_user}","gists_url":"https://api.github.com/users/elgs/gists{/gist_id}","starred_url":"https://api.github.com/users/elgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elgs/subscriptions","organizations_url":"https://api.github.com/users/elgs/orgs","repos_url":"https://api.github.com/users/elgs/repos","events_url":"https://api.github.com/users/elgs/events{/privacy}","received_events_url":"https://api.github.com/users/elgs/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T08:11:30Z","updated_at":"2015-06-23T08:11:30Z","body":"Thanks @PhiLhoSoft. So if I want to use it in another function, should I hook the variable `selectize` to another variable outside the `onInitialize`, like so?\r\n\r\n```\r\nvar mySelectize = \r\n$scope.myConfig = {\r\n  // ...\r\n  onInitialize: function(selectize){\r\n    // receives the selectize object as an argument\r\n    mySelectize = selectize;\r\n  }\r\n};\r\n```\r\n\r\nIs it correct? Thanks."}}