{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/15","id":27171175,"html_url":"https://github.com/bendrucker/angular-credit-cards/pull/15","diff_url":"https://github.com/bendrucker/angular-credit-cards/pull/15.diff","patch_url":"https://github.com/bendrucker/angular-credit-cards/pull/15.patch","issue_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/issues/15","number":15,"state":"open","locked":false,"title":"Check angular in window before require","user":{"login":"randing89","id":640557,"avatar_url":"https://avatars.githubusercontent.com/u/640557?v=3","gravatar_id":"","url":"https://api.github.com/users/randing89","html_url":"https://github.com/randing89","followers_url":"https://api.github.com/users/randing89/followers","following_url":"https://api.github.com/users/randing89/following{/other_user}","gists_url":"https://api.github.com/users/randing89/gists{/gist_id}","starred_url":"https://api.github.com/users/randing89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randing89/subscriptions","organizations_url":"https://api.github.com/users/randing89/orgs","repos_url":"https://api.github.com/users/randing89/repos","events_url":"https://api.github.com/users/randing89/events{/privacy}","received_events_url":"https://api.github.com/users/randing89/received_events","type":"User","site_admin":false},"body":"Wouldn't be better to check if angular is exist in window? \r\nIn my environment require('angular') will give me undefined.","created_at":"2015-01-12T00:58:17Z","updated_at":"2015-01-12T00:58:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/15/commits","review_comments_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/15/comments","review_comment_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/issues/15/comments","statuses_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/statuses/bb81be7198909695a86256573205aeda2dacce2d","head":{"label":"randing89:master","ref":"master","sha":"bb81be7198909695a86256573205aeda2dacce2d","user":{"login":"randing89","id":640557,"avatar_url":"https://avatars.githubusercontent.com/u/640557?v=3","gravatar_id":"","url":"https://api.github.com/users/randing89","html_url":"https://github.com/randing89","followers_url":"https://api.github.com/users/randing89/followers","following_url":"https://api.github.com/users/randing89/following{/other_user}","gists_url":"https://api.github.com/users/randing89/gists{/gist_id}","starred_url":"https://api.github.com/users/randing89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randing89/subscriptions","organizations_url":"https://api.github.com/users/randing89/orgs","repos_url":"https://api.github.com/users/randing89/repos","events_url":"https://api.github.com/users/randing89/events{/privacy}","received_events_url":"https://api.github.com/users/randing89/received_events","type":"User","site_admin":false},"repo":{"id":29112219,"name":"angular-credit-cards","full_name":"randing89/angular-credit-cards","owner":{"login":"randing89","id":640557,"avatar_url":"https://avatars.githubusercontent.com/u/640557?v=3","gravatar_id":"","url":"https://api.github.com/users/randing89","html_url":"https://github.com/randing89","followers_url":"https://api.github.com/users/randing89/followers","following_url":"https://api.github.com/users/randing89/following{/other_user}","gists_url":"https://api.github.com/users/randing89/gists{/gist_id}","starred_url":"https://api.github.com/users/randing89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randing89/subscriptions","organizations_url":"https://api.github.com/users/randing89/orgs","repos_url":"https://api.github.com/users/randing89/repos","events_url":"https://api.github.com/users/randing89/events{/privacy}","received_events_url":"https://api.github.com/users/randing89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/randing89/angular-credit-cards","description":"Angular directives for parsing and validating credit card inputs","fork":true,"url":"https://api.github.com/repos/randing89/angular-credit-cards","forks_url":"https://api.github.com/repos/randing89/angular-credit-cards/forks","keys_url":"https://api.github.com/repos/randing89/angular-credit-cards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/randing89/angular-credit-cards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/randing89/angular-credit-cards/teams","hooks_url":"https://api.github.com/repos/randing89/angular-credit-cards/hooks","issue_events_url":"https://api.github.com/repos/randing89/angular-credit-cards/issues/events{/number}","events_url":"https://api.github.com/repos/randing89/angular-credit-cards/events","assignees_url":"https://api.github.com/repos/randing89/angular-credit-cards/assignees{/user}","branches_url":"https://api.github.com/repos/randing89/angular-credit-cards/branches{/branch}","tags_url":"https://api.github.com/repos/randing89/angular-credit-cards/tags","blobs_url":"https://api.github.com/repos/randing89/angular-credit-cards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/randing89/angular-credit-cards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/randing89/angular-credit-cards/git/refs{/sha}","trees_url":"https://api.github.com/repos/randing89/angular-credit-cards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/randing89/angular-credit-cards/statuses/{sha}","languages_url":"https://api.github.com/repos/randing89/angular-credit-cards/languages","stargazers_url":"https://api.github.com/repos/randing89/angular-credit-cards/stargazers","contributors_url":"https://api.github.com/repos/randing89/angular-credit-cards/contributors","subscribers_url":"https://api.github.com/repos/randing89/angular-credit-cards/subscribers","subscription_url":"https://api.github.com/repos/randing89/angular-credit-cards/subscription","commits_url":"https://api.github.com/repos/randing89/angular-credit-cards/commits{/sha}","git_commits_url":"https://api.github.com/repos/randing89/angular-credit-cards/git/commits{/sha}","comments_url":"https://api.github.com/repos/randing89/angular-credit-cards/comments{/number}","issue_comment_url":"https://api.github.com/repos/randing89/angular-credit-cards/issues/comments/{number}","contents_url":"https://api.github.com/repos/randing89/angular-credit-cards/contents/{+path}","compare_url":"https://api.github.com/repos/randing89/angular-credit-cards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/randing89/angular-credit-cards/merges","archive_url":"https://api.github.com/repos/randing89/angular-credit-cards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/randing89/angular-credit-cards/downloads","issues_url":"https://api.github.com/repos/randing89/angular-credit-cards/issues{/number}","pulls_url":"https://api.github.com/repos/randing89/angular-credit-cards/pulls{/number}","milestones_url":"https://api.github.com/repos/randing89/angular-credit-cards/milestones{/number}","notifications_url":"https://api.github.com/repos/randing89/angular-credit-cards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/randing89/angular-credit-cards/labels{/name}","releases_url":"https://api.github.com/repos/randing89/angular-credit-cards/releases{/id}","created_at":"2015-01-12T00:49:54Z","updated_at":"2015-01-12T00:53:39Z","pushed_at":"2015-01-12T00:53:39Z","git_url":"git://github.com/randing89/angular-credit-cards.git","ssh_url":"git@github.com:randing89/angular-credit-cards.git","clone_url":"https://github.com/randing89/angular-credit-cards.git","svn_url":"https://github.com/randing89/angular-credit-cards","homepage":"","size":410,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bendrucker:master","ref":"master","sha":"c6b512206f9223118d95535b4b70f1a5f1c43786","user":{"login":"bendrucker","id":808808,"avatar_url":"https://avatars.githubusercontent.com/u/808808?v=3","gravatar_id":"","url":"https://api.github.com/users/bendrucker","html_url":"https://github.com/bendrucker","followers_url":"https://api.github.com/users/bendrucker/followers","following_url":"https://api.github.com/users/bendrucker/following{/other_user}","gists_url":"https://api.github.com/users/bendrucker/gists{/gist_id}","starred_url":"https://api.github.com/users/bendrucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendrucker/subscriptions","organizations_url":"https://api.github.com/users/bendrucker/orgs","repos_url":"https://api.github.com/users/bendrucker/repos","events_url":"https://api.github.com/users/bendrucker/events{/privacy}","received_events_url":"https://api.github.com/users/bendrucker/received_events","type":"User","site_admin":false},"repo":{"id":20493256,"name":"angular-credit-cards","full_name":"bendrucker/angular-credit-cards","owner":{"login":"bendrucker","id":808808,"avatar_url":"https://avatars.githubusercontent.com/u/808808?v=3","gravatar_id":"","url":"https://api.github.com/users/bendrucker","html_url":"https://github.com/bendrucker","followers_url":"https://api.github.com/users/bendrucker/followers","following_url":"https://api.github.com/users/bendrucker/following{/other_user}","gists_url":"https://api.github.com/users/bendrucker/gists{/gist_id}","starred_url":"https://api.github.com/users/bendrucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendrucker/subscriptions","organizations_url":"https://api.github.com/users/bendrucker/orgs","repos_url":"https://api.github.com/users/bendrucker/repos","events_url":"https://api.github.com/users/bendrucker/events{/privacy}","received_events_url":"https://api.github.com/users/bendrucker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bendrucker/angular-credit-cards","description":"Angular directives for parsing and validating credit card inputs","fork":false,"url":"https://api.github.com/repos/bendrucker/angular-credit-cards","forks_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/forks","keys_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/teams","hooks_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/hooks","issue_events_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/issues/events{/number}","events_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/events","assignees_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/assignees{/user}","branches_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/branches{/branch}","tags_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/tags","blobs_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/git/refs{/sha}","trees_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/statuses/{sha}","languages_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/languages","stargazers_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/stargazers","contributors_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/contributors","subscribers_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/subscribers","subscription_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/subscription","commits_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/commits{/sha}","git_commits_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/git/commits{/sha}","comments_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/comments{/number}","issue_comment_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/issues/comments/{number}","contents_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/contents/{+path}","compare_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/merges","archive_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/downloads","issues_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/issues{/number}","pulls_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls{/number}","milestones_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/milestones{/number}","notifications_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/labels{/name}","releases_url":"https://api.github.com/repos/bendrucker/angular-credit-cards/releases{/id}","created_at":"2014-06-04T17:38:03Z","updated_at":"2015-01-11T18:26:15Z","pushed_at":"2015-01-11T18:26:15Z","git_url":"git://github.com/bendrucker/angular-credit-cards.git","ssh_url":"git@github.com:bendrucker/angular-credit-cards.git","clone_url":"https://github.com/bendrucker/angular-credit-cards.git","svn_url":"https://github.com/bendrucker/angular-credit-cards","homepage":"","size":410,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/15"},"html":{"href":"https://github.com/bendrucker/angular-credit-cards/pull/15"},"issue":{"href":"https://api.github.com/repos/bendrucker/angular-credit-cards/issues/15"},"comments":{"href":"https://api.github.com/repos/bendrucker/angular-credit-cards/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bendrucker/angular-credit-cards/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/bendrucker/angular-credit-cards/statuses/bb81be7198909695a86256573205aeda2dacce2d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}