{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/angular-lock/issues/3","repository_url":"https://api.github.com/repos/auth0/angular-lock","labels_url":"https://api.github.com/repos/auth0/angular-lock/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/auth0/angular-lock/issues/3/comments","events_url":"https://api.github.com/repos/auth0/angular-lock/issues/3/events","html_url":"https://github.com/auth0/angular-lock/issues/3","id":177158535,"number":3,"title":"Allow Auth0Lock to be passed as a provider parameter","user":{"login":"scotttrinh","id":1682194,"avatar_url":"https://avatars.githubusercontent.com/u/1682194?v=3","gravatar_id":"","url":"https://api.github.com/users/scotttrinh","html_url":"https://github.com/scotttrinh","followers_url":"https://api.github.com/users/scotttrinh/followers","following_url":"https://api.github.com/users/scotttrinh/following{/other_user}","gists_url":"https://api.github.com/users/scotttrinh/gists{/gist_id}","starred_url":"https://api.github.com/users/scotttrinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotttrinh/subscriptions","organizations_url":"https://api.github.com/users/scotttrinh/orgs","repos_url":"https://api.github.com/users/scotttrinh/repos","events_url":"https://api.github.com/users/scotttrinh/events{/privacy}","received_events_url":"https://api.github.com/users/scotttrinh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-15T12:04:23Z","updated_at":"2016-10-11T23:13:29Z","closed_at":null,"body":"When using bundlers like `webpack`, `browserify`, and `rollup`, nothing is typically added to the global scope, so this bundling fails when looking for the global `Auth0Lock`. It seems that the old `angular-auth0` package allowed you to optionally pass the lock constructor as a parameter to the `init` method. Why not continue to do that instead of requiring globals?"},"comment":{"url":"https://api.github.com/repos/auth0/angular-lock/issues/comments/253074321","html_url":"https://github.com/auth0/angular-lock/issues/3#issuecomment-253074321","issue_url":"https://api.github.com/repos/auth0/angular-lock/issues/3","id":253074321,"user":{"login":"scotttrinh","id":1682194,"avatar_url":"https://avatars.githubusercontent.com/u/1682194?v=3","gravatar_id":"","url":"https://api.github.com/users/scotttrinh","html_url":"https://github.com/scotttrinh","followers_url":"https://api.github.com/users/scotttrinh/followers","following_url":"https://api.github.com/users/scotttrinh/following{/other_user}","gists_url":"https://api.github.com/users/scotttrinh/gists{/gist_id}","starred_url":"https://api.github.com/users/scotttrinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotttrinh/subscriptions","organizations_url":"https://api.github.com/users/scotttrinh/orgs","repos_url":"https://api.github.com/users/scotttrinh/repos","events_url":"https://api.github.com/users/scotttrinh/events{/privacy}","received_events_url":"https://api.github.com/users/scotttrinh/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T23:13:29Z","updated_at":"2016-10-11T23:13:29Z","body":"@wootencl I was thinking the more straightforward solution would be to pass the `Auth0` constructor to the init function like the old `angular-lock` library [used to do](https://github.com/auth0/auth0-angular/blob/master/src/services/auth0.service.js#L131-L141), was that not feasible?"}}
{"actor":{"display_login":"scotttrinh"}}