{"action":"created","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1563","repository_url":"https://api.github.com/repos/angular-translate/angular-translate","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1563/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1563/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1563/events","html_url":"https://github.com/angular-translate/angular-translate/issues/1563","id":172889992,"number":1563,"title":"Module breaks when AMD loader is present but implementation is simple","user":{"login":"KrekkieD","id":2565017,"avatar_url":"https://avatars.githubusercontent.com/u/2565017?v=3","gravatar_id":"","url":"https://api.github.com/users/KrekkieD","html_url":"https://github.com/KrekkieD","followers_url":"https://api.github.com/users/KrekkieD/followers","following_url":"https://api.github.com/users/KrekkieD/following{/other_user}","gists_url":"https://api.github.com/users/KrekkieD/gists{/gist_id}","starred_url":"https://api.github.com/users/KrekkieD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrekkieD/subscriptions","organizations_url":"https://api.github.com/users/KrekkieD/orgs","repos_url":"https://api.github.com/users/KrekkieD/repos","events_url":"https://api.github.com/users/KrekkieD/events{/privacy}","received_events_url":"https://api.github.com/users/KrekkieD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-24T08:07:53Z","updated_at":"2016-08-24T11:07:42Z","closed_at":null,"body":"### Subject of the issue\r\nThe `requireJS` module is present on the page, resulting in a `true` for the check `typeof define === 'function' && define.amd`. The `factory` function is now executed when the module is loaded using `require`. However, the angular app does not use the AMD loader. The presence of the AMD loader on the page is required for other reasons.\r\n\r\n### Your environment\r\n* version of angular-translate: 2.11.0\r\n* version of angular: 1.5.9\r\n\r\n### Steps to reproduce\r\n* Load `requirejs` or a different AMD loader using a script tag in the `<head>` of the HTML file\r\n* Create an angular module with a dependency on translate and include it in a script tag at the bottom of the `<body>`\r\n* Include the angular translate module using a script tag at the bottom of the `<body>`.\r\n* Alternatively, build the angular sources together into a single javascript file (concat file sources)\r\n\r\n### Expected behaviour\r\nThe Angular translate module should be properly registered, even though the module is not loaded with the AMD loader.\r\n\r\n### Actual behaviour\r\n* The Angular translate module is not registered. \r\n* An error is thrown due to the fact that the module is not loaded through AMD but in a script tag: `Mismatched anonymous define() module`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/comments/242028205","html_url":"https://github.com/angular-translate/angular-translate/issues/1563#issuecomment-242028205","issue_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1563","id":242028205,"user":{"login":"KrekkieD","id":2565017,"avatar_url":"https://avatars.githubusercontent.com/u/2565017?v=3","gravatar_id":"","url":"https://api.github.com/users/KrekkieD","html_url":"https://github.com/KrekkieD","followers_url":"https://api.github.com/users/KrekkieD/followers","following_url":"https://api.github.com/users/KrekkieD/following{/other_user}","gists_url":"https://api.github.com/users/KrekkieD/gists{/gist_id}","starred_url":"https://api.github.com/users/KrekkieD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrekkieD/subscriptions","organizations_url":"https://api.github.com/users/KrekkieD/orgs","repos_url":"https://api.github.com/users/KrekkieD/repos","events_url":"https://api.github.com/users/KrekkieD/events{/privacy}","received_events_url":"https://api.github.com/users/KrekkieD/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T11:07:42Z","updated_at":"2016-08-24T11:07:42Z","body":"See these fiddles :)\r\n\r\nGood: No requirejs present: https://jsfiddle.net/0vxw61xy/2/\r\nBad: With requirejs present: https://jsfiddle.net/keoqdhyw/\r\n"}}
{"actor":{"display_login":"KrekkieD"}}