{"action":"created","issue":{"url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/58","repository_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes","labels_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/58/comments","events_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/58/events","html_url":"https://github.com/johnpapa/angular2-tour-of-heroes/issues/58","id":140831561,"number":58,"title":"splitting components in folders","user":{"login":"teone","id":3929466,"avatar_url":"https://avatars.githubusercontent.com/u/3929466?v=3","gravatar_id":"","url":"https://api.github.com/users/teone","html_url":"https://github.com/teone","followers_url":"https://api.github.com/users/teone/followers","following_url":"https://api.github.com/users/teone/following{/other_user}","gists_url":"https://api.github.com/users/teone/gists{/gist_id}","starred_url":"https://api.github.com/users/teone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teone/subscriptions","organizations_url":"https://api.github.com/users/teone/orgs","repos_url":"https://api.github.com/users/teone/repos","events_url":"https://api.github.com/users/teone/events{/privacy}","received_events_url":"https://api.github.com/users/teone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-15T00:05:01Z","updated_at":"2016-03-17T17:24:34Z","closed_at":null,"body":"I was trying to split this component tutorial in folder as the `app` folder is starting to be a bit crowded, my aim to arrive to situation like:\r\n\r\n```\r\napp/\r\n├── README.md\r\n├── app.component.css\r\n├── app.component.ts\r\n├── dashboard\r\n│   ├── dashboard.component.css\r\n│   ├── dashboard.component.html\r\n│   └── dashboard.component.ts\r\n├── hero-detail\r\n│   ├── hero-detail.component.css\r\n│   ├── hero-detail.component.html\r\n│   └── hero-detail.component.ts\r\n├── dashboard\r\n│   ├── heroes.component.css\r\n│   ├── heroes.component.html\r\n│   └── heroes.component.ts\r\n├── interfaces\r\n│   └── hero.ts\r\n├── main.ts\r\n├── mock-heroes.ts\r\n└── services\r\n    └── hero.service.ts\r\n```\r\n\r\nThat looks much like a real application structure but I'm having issues with `SystemJs` and the `import` path translation.\r\n\r\nAs I move a component inside a folder I start getting errors like: \r\n```\r\nFailed to load http://localhost:3000/node_modules/angular2/core.d\r\n```\r\n\r\nIt looks like the `.ts` is removed somewhere. Any hint on how to fix this error?\r\n\r\nIf needed my current attempt is tracked here: `https://github.com/teone/angular2-sample/tree/develop`\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/comments/197986196","html_url":"https://github.com/johnpapa/angular2-tour-of-heroes/issues/58#issuecomment-197986196","issue_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/58","id":197986196,"user":{"login":"teone","id":3929466,"avatar_url":"https://avatars.githubusercontent.com/u/3929466?v=3","gravatar_id":"","url":"https://api.github.com/users/teone","html_url":"https://github.com/teone","followers_url":"https://api.github.com/users/teone/followers","following_url":"https://api.github.com/users/teone/following{/other_user}","gists_url":"https://api.github.com/users/teone/gists{/gist_id}","starred_url":"https://api.github.com/users/teone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teone/subscriptions","organizations_url":"https://api.github.com/users/teone/orgs","repos_url":"https://api.github.com/users/teone/repos","events_url":"https://api.github.com/users/teone/events{/privacy}","received_events_url":"https://api.github.com/users/teone/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T17:24:34Z","updated_at":"2016-03-17T17:24:34Z","body":"@kat-liger yes these are the same exact issues I've experienced. Still looking for a solution but didn't find time this week."}}