{"action":"opened","issue":{"url":"https://api.github.com/repos/omichelsen/angular-clipboard/issues/60","repository_url":"https://api.github.com/repos/omichelsen/angular-clipboard","labels_url":"https://api.github.com/repos/omichelsen/angular-clipboard/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/omichelsen/angular-clipboard/issues/60/comments","events_url":"https://api.github.com/repos/omichelsen/angular-clipboard/issues/60/events","html_url":"https://github.com/omichelsen/angular-clipboard/issues/60","id":206616854,"number":60,"title":"Check for angular being available as global variable before using require","user":{"login":"johannesjo","id":1456265,"avatar_url":"https://avatars.githubusercontent.com/u/1456265?v=3","gravatar_id":"","url":"https://api.github.com/users/johannesjo","html_url":"https://github.com/johannesjo","followers_url":"https://api.github.com/users/johannesjo/followers","following_url":"https://api.github.com/users/johannesjo/following{/other_user}","gists_url":"https://api.github.com/users/johannesjo/gists{/gist_id}","starred_url":"https://api.github.com/users/johannesjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannesjo/subscriptions","organizations_url":"https://api.github.com/users/johannesjo/orgs","repos_url":"https://api.github.com/users/johannesjo/repos","events_url":"https://api.github.com/users/johannesjo/events{/privacy}","received_events_url":"https://api.github.com/users/johannesjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-09T20:11:12Z","updated_at":"2017-02-09T20:11:12Z","closed_at":null,"body":"When I've a context where there is require available, but loading angular directly via a file (which might very well be the case for an electron app), your method of requiring angular throws errors. If you add a simple check if angular is defined as global variable first, everything should be fine. "}}
{"actor":{"display_login":"johannesjo"}}