{"action":"created","issue":{"url":"https://api.github.com/repos/gomoob/oauth.js/issues/20","labels_url":"https://api.github.com/repos/gomoob/oauth.js/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/gomoob/oauth.js/issues/20/comments","events_url":"https://api.github.com/repos/gomoob/oauth.js/issues/20/events","html_url":"https://github.com/gomoob/oauth.js/issues/20","id":116151003,"number":20,"title":"Implementing oauth.js in Angular App","user":{"login":"fr4n3r","id":11749429,"avatar_url":"https://avatars.githubusercontent.com/u/11749429?v=3","gravatar_id":"","url":"https://api.github.com/users/fr4n3r","html_url":"https://github.com/fr4n3r","followers_url":"https://api.github.com/users/fr4n3r/followers","following_url":"https://api.github.com/users/fr4n3r/following{/other_user}","gists_url":"https://api.github.com/users/fr4n3r/gists{/gist_id}","starred_url":"https://api.github.com/users/fr4n3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fr4n3r/subscriptions","organizations_url":"https://api.github.com/users/fr4n3r/orgs","repos_url":"https://api.github.com/users/fr4n3r/repos","events_url":"https://api.github.com/users/fr4n3r/events{/privacy}","received_events_url":"https://api.github.com/users/fr4n3r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gomoob/oauth.js/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"bgaillard","id":1327782,"avatar_url":"https://avatars.githubusercontent.com/u/1327782?v=3","gravatar_id":"","url":"https://api.github.com/users/bgaillard","html_url":"https://github.com/bgaillard","followers_url":"https://api.github.com/users/bgaillard/followers","following_url":"https://api.github.com/users/bgaillard/following{/other_user}","gists_url":"https://api.github.com/users/bgaillard/gists{/gist_id}","starred_url":"https://api.github.com/users/bgaillard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgaillard/subscriptions","organizations_url":"https://api.github.com/users/bgaillard/orgs","repos_url":"https://api.github.com/users/bgaillard/repos","events_url":"https://api.github.com/users/bgaillard/events{/privacy}","received_events_url":"https://api.github.com/users/bgaillard/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-10T16:59:45Z","updated_at":"2016-01-08T09:27:12Z","closed_at":null,"body":"We are trying to figure out how to use Oauth.js with Angular. \r\nFirst question comes where to initialize the library via the `init()` method. We have guessed a good place would be on angular module configuration through a service.\r\nThe second question arises when we want to configure the `Oauth` object with the `loginFn`. We have no clue on how to create the modal from the service.\r\nCould you please provide a full sample working with angular? I guess we are not making the right decisions and a simple full working sample would be most helpful.\r\nThanks in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/gomoob/oauth.js/issues/comments/169945237","html_url":"https://github.com/gomoob/oauth.js/issues/20#issuecomment-169945237","issue_url":"https://api.github.com/repos/gomoob/oauth.js/issues/20","id":169945237,"user":{"login":"bgaillard","id":1327782,"avatar_url":"https://avatars.githubusercontent.com/u/1327782?v=3","gravatar_id":"","url":"https://api.github.com/users/bgaillard","html_url":"https://github.com/bgaillard","followers_url":"https://api.github.com/users/bgaillard/followers","following_url":"https://api.github.com/users/bgaillard/following{/other_user}","gists_url":"https://api.github.com/users/bgaillard/gists{/gist_id}","starred_url":"https://api.github.com/users/bgaillard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgaillard/subscriptions","organizations_url":"https://api.github.com/users/bgaillard/orgs","repos_url":"https://api.github.com/users/bgaillard/repos","events_url":"https://api.github.com/users/bgaillard/events{/privacy}","received_events_url":"https://api.github.com/users/bgaillard/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T09:27:12Z","updated_at":"2016-01-08T09:27:12Z","body":"@fr4n3r Any news on this ? Did you integrate oauth.js with success un your Angular app ?"}}