<p dir="auto">Hi everyone!</p>
<p dir="auto">I upgraded the application from RC4 to RC5 and was working just fine. It was also working fine when i modified the <code class="notranslate">bootstrap</code> to the latest root module method. Then i converted one section of the application using NgModule approach. This Module is pulled in using routing.</p>
<p dir="auto">So the issue is i have two components  (Nav, header) which are being used in different components. When i put them in the <code class="notranslate">declarations</code> part of the Featured Module i get a warning in my browser console that its declared in two places, AppModule and CatalogModule (even though i have not explicitly declared it in AppModule.</p>
<p dir="auto">After some research i found out that RC5 automatically pulls in all declarations to avoid breaking changes for developers using previous versions. So i Added the components explicitly in the <code class="notranslate">declarations</code> of the AppModule (root Module) and removed it from the CatalogModule (feature module). There are no compiler/browser errors now but the components are not loaded in that route. The header and Nav is simply missing.</p>
<p dir="auto">For other components its working which belong to AppModule.</p>
<p dir="auto">Can anyone please shine some light on what i could be doing wrong ?</p>
<p dir="auto">Before integrating the definitions to the package directly including those into a ASP.NET 4 project that uses SystemJS was really easy: Just put the file from DefinitelyTyped into the project, do an <code class="notranslate">import * as ng from 'angular2/angular2'</code> in a TypeScript file and everything worked fine. This doesn't fit anymore (in my case), since there is no single <code class="notranslate">.d.ts</code> file with all definitions.</p>
<p dir="auto">When I was using the import statement above, the <code class="notranslate">'angular2/angular2'</code> (path and JS file) was resolved by SystemJS and Visual Studio knew about it because of the definition file that was declaring a module. How do I achieve that Visual Studio will know about that again? I tried many hours without success, except using the old Alpha stage <code class="notranslate">.d.ts</code> file and changing it slightly to declare it as <code class="notranslate">angular2/core</code>.</p>
<p dir="auto">How can this problem be resolved without using the new project system of ASP.NET 5?</p>