How can I organize my Angular app folders like a Java package?
<p>How to organize Angular 2 app folder structure like Java packages?</p>

<p>Consider the following project layout:</p>

<pre><code>app
 |_model
 |_component
 |_service
</code></pre>

<p>I would like to import <code>foo.service.ts</code> from <em>service</em> to <code>bar.component.ts</code> in <em>component</em>. But as far as I know, Angular 2 import supports only relative paths like <code>/../service/</code>, which seems very clunky solution.</p>

<p>Is there a way to refer folders with absolute bath from <em>root folder</em>, like with Java packages?</p>