{"action":"created","issue":{"url":"https://api.github.com/repos/dustinspecker/generator-ng-poly/issues/360","repository_url":"https://api.github.com/repos/dustinspecker/generator-ng-poly","labels_url":"https://api.github.com/repos/dustinspecker/generator-ng-poly/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/dustinspecker/generator-ng-poly/issues/360/comments","events_url":"https://api.github.com/repos/dustinspecker/generator-ng-poly/issues/360/events","html_url":"https://github.com/dustinspecker/generator-ng-poly/issues/360","id":191758289,"number":360,"title":"import and export es6","user":{"login":"srobledo","id":2824191,"avatar_url":"https://avatars.githubusercontent.com/u/2824191?v=3","gravatar_id":"","url":"https://api.github.com/users/srobledo","html_url":"https://github.com/srobledo","followers_url":"https://api.github.com/users/srobledo/followers","following_url":"https://api.github.com/users/srobledo/following{/other_user}","gists_url":"https://api.github.com/users/srobledo/gists{/gist_id}","starred_url":"https://api.github.com/users/srobledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srobledo/subscriptions","organizations_url":"https://api.github.com/users/srobledo/orgs","repos_url":"https://api.github.com/users/srobledo/repos","events_url":"https://api.github.com/users/srobledo/events{/privacy}","received_events_url":"https://api.github.com/users/srobledo/received_events","type":"User","site_admin":false},"labels":[{"id":113701454,"url":"https://api.github.com/repos/dustinspecker/generator-ng-poly/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-25T19:45:35Z","updated_at":"2016-11-27T18:29:37Z","closed_at":null,"body":"Cannot export or import clases when using es6.\r\n\r\nExporting class:\r\n```\r\nexport class authRestService\r\n{\r\n  constructor($resource, env) {\r\n    this.$resource = $resource;\r\n    this.env = env;\r\n  }\r\n}\r\n```\r\nImporting class and extending:\r\n```\r\nimport {authRestService} from './authrest-service';\r\n\r\n(function () {\r\n  'use strict';\r\n\r\n  class Auth extends authRestService {\r\n    constructor($resource, env) {\r\n      super($resource, env);\r\n    }\r\n\r\n    get() {\r\n      return 'Auth';\r\n    }\r\n  }\r\n\r\n  /**\r\n   * @ngdoc service\r\n   * @name components.service:Auth\r\n   *\r\n   * @description\r\n   *\r\n   */\r\n  angular\r\n    .module('components')\r\n    .service('Auth', Auth);\r\n}());\r\n\r\n```\r\ni get the following error on the console,\r\n\r\n> authrest-service.js:3 Uncaught ReferenceError: exports is not defined(…)(anonymous function)\r\n> auth-service.js:11 Uncaught ReferenceError: require is not defined(…)(anonymous function)"},"comment":{"url":"https://api.github.com/repos/dustinspecker/generator-ng-poly/issues/comments/263138223","html_url":"https://github.com/dustinspecker/generator-ng-poly/issues/360#issuecomment-263138223","issue_url":"https://api.github.com/repos/dustinspecker/generator-ng-poly/issues/360","id":263138223,"user":{"login":"srobledo","id":2824191,"avatar_url":"https://avatars.githubusercontent.com/u/2824191?v=3","gravatar_id":"","url":"https://api.github.com/users/srobledo","html_url":"https://github.com/srobledo","followers_url":"https://api.github.com/users/srobledo/followers","following_url":"https://api.github.com/users/srobledo/following{/other_user}","gists_url":"https://api.github.com/users/srobledo/gists{/gist_id}","starred_url":"https://api.github.com/users/srobledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srobledo/subscriptions","organizations_url":"https://api.github.com/users/srobledo/orgs","repos_url":"https://api.github.com/users/srobledo/repos","events_url":"https://api.github.com/users/srobledo/events{/privacy}","received_events_url":"https://api.github.com/users/srobledo/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T18:29:37Z","updated_at":"2016-11-27T18:29:37Z","body":"@dustinspecker thank you for taking your time to respond, do you suggest any approach (some npm module ect.) so i can resolve this and added to the gulp files? and maybe create a PR for this repo, it would be nice to have it."}}
{"actor":{"display_login":"srobledo"}}