{"action":"created","issue":{"url":"https://api.github.com/repos/720kb/angular-datepicker/issues/279","repository_url":"https://api.github.com/repos/720kb/angular-datepicker","labels_url":"https://api.github.com/repos/720kb/angular-datepicker/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/720kb/angular-datepicker/issues/279/comments","events_url":"https://api.github.com/repos/720kb/angular-datepicker/issues/279/events","html_url":"https://github.com/720kb/angular-datepicker/issues/279","id":242711989,"number":279,"title":"Return module from main function to simplify import","user":{"login":"Nargonath","id":583657,"avatar_url":"https://avatars1.githubusercontent.com/u/583657?v=4","gravatar_id":"","url":"https://api.github.com/users/Nargonath","html_url":"https://github.com/Nargonath","followers_url":"https://api.github.com/users/Nargonath/followers","following_url":"https://api.github.com/users/Nargonath/following{/other_user}","gists_url":"https://api.github.com/users/Nargonath/gists{/gist_id}","starred_url":"https://api.github.com/users/Nargonath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nargonath/subscriptions","organizations_url":"https://api.github.com/users/Nargonath/orgs","repos_url":"https://api.github.com/users/Nargonath/repos","events_url":"https://api.github.com/users/Nargonath/events{/privacy}","received_events_url":"https://api.github.com/users/Nargonath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-13T14:03:10Z","updated_at":"2017-09-13T18:14:08Z","closed_at":null,"author_association":"NONE","body":"This would allow us to import the module as is:\r\n\r\n```javascript\r\n\r\nimport datepicker from 'angularjs-datepicker';\r\n\r\nangular.module('myApp.myModule', [datepicker]);\r\n```\r\n\r\ninstead of this:\r\n\r\n```javascript\r\n\r\nimport 'angularjs-datepicker';\r\n\r\nangular.module('myApp.myModule', ['720kb.datepicker']);\r\n```\r\n\r\nIf you are ok with this, I'll be happy to make a PR. "},"comment":{"url":"https://api.github.com/repos/720kb/angular-datepicker/issues/comments/329252171","html_url":"https://github.com/720kb/angular-datepicker/issues/279#issuecomment-329252171","issue_url":"https://api.github.com/repos/720kb/angular-datepicker/issues/279","id":329252171,"user":{"login":"rastasheep","id":695790,"avatar_url":"https://avatars1.githubusercontent.com/u/695790?v=4","gravatar_id":"","url":"https://api.github.com/users/rastasheep","html_url":"https://github.com/rastasheep","followers_url":"https://api.github.com/users/rastasheep/followers","following_url":"https://api.github.com/users/rastasheep/following{/other_user}","gists_url":"https://api.github.com/users/rastasheep/gists{/gist_id}","starred_url":"https://api.github.com/users/rastasheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastasheep/subscriptions","organizations_url":"https://api.github.com/users/rastasheep/orgs","repos_url":"https://api.github.com/users/rastasheep/repos","events_url":"https://api.github.com/users/rastasheep/events{/privacy}","received_events_url":"https://api.github.com/users/rastasheep/received_events","type":"User","site_admin":false},"created_at":"2017-09-13T18:14:08Z","updated_at":"2017-09-13T18:14:08Z","author_association":"NONE","body":"It should be fixed of course, my comment is quickest workaround until this gets resolved.\r\n\r\nIMHO some pattern that i've seen is that ppl set `index.js` in `package.json` which will be loaded if you import lib via it's name:\r\n```\r\nimport datepicker from 'angularjs-datepicker/index';\r\n```\r\nand if you're not using js modules you manually import file (`dist/angular-datepicker.js`) anyway.\r\n\r\nExample lib: https://github.com/chieffancypants/angular-loading-bar "}}
{"actor":{"display_login":"rastasheep"}}