title: Use a component inside another component same module not working in Angular 6
body: <p>My shared.module is:</p>
  
  <pre><code>@NgModule({
    imports: [],
    declarations: [
      Component1,
      Component2,
    ],
    exports: [
      Component1,
      Component2,
    ],
  })
  </code></pre>
  
  <p>And i want to use Component2 inside Component1 but i have this error:
  "'Component2' is not a known element".</p>
  
  <p>Why is component2 not recognized by component1? Both are in the same module and the same level.</p>
  
  <p>I'm using this shared.module in my HomePage. The Home.module is:</p>
  
  <pre><code>@NgModule({
    imports: [HomeRouterModule, SharedComponentsModule],
    declarations: [HomeComponent],
  })
  </code></pre>