{"action":"opened","issue":{"url":"https://api.github.com/repos/ixtendo/Polyglot-Language-Switcher-2/issues/2","labels_url":"https://api.github.com/repos/ixtendo/Polyglot-Language-Switcher-2/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ixtendo/Polyglot-Language-Switcher-2/issues/2/comments","events_url":"https://api.github.com/repos/ixtendo/Polyglot-Language-Switcher-2/issues/2/events","html_url":"https://github.com/ixtendo/Polyglot-Language-Switcher-2/issues/2","id":105357876,"number":2,"title":"Change language based on async HTTP call","user":{"login":"ChristianLJ","id":3056379,"avatar_url":"https://avatars.githubusercontent.com/u/3056379?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianLJ","html_url":"https://github.com/ChristianLJ","followers_url":"https://api.github.com/users/ChristianLJ/followers","following_url":"https://api.github.com/users/ChristianLJ/following{/other_user}","gists_url":"https://api.github.com/users/ChristianLJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianLJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianLJ/subscriptions","organizations_url":"https://api.github.com/users/ChristianLJ/orgs","repos_url":"https://api.github.com/users/ChristianLJ/repos","events_url":"https://api.github.com/users/ChristianLJ/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianLJ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-08T11:25:36Z","updated_at":"2015-09-08T11:25:36Z","closed_at":null,"body":"Hi there,\r\n\r\nThank you for this plugin. It is very useful.I am facing a problem i will try to describe.\r\n\r\nI am making an $http() call, in which i get the current users language. \r\nWhen i receive this language i wan't the language switcher to change to the selected language.\r\n I have tried doing this by setting a $scope variable to the current language when the request is finish and databind this to the selected-lang attribute: \r\n```javascript\r\n  selected-lang=\"{{languagePreference}}\"\r\n```\r\nThis approach does not work. Can you point me in the right direction of getting the behaviour i want?\r\n\r\nThank you."}}