title: Reusing a component over multiple modules in angular
body: <p>Hi guys I am fairly new to the angular space and am trying to use a component that I created in AppModule in two other modules to reduce redundant code. I tried exporting the component from AppModule and import in the other modules but that did not seem to work.</p>
  <p>Doing that gave me the errors:</p>
  <pre><code>error NG6002: Appears in the NgModule.imports of AdminModule, but could not be resolved to an NgModule class.
  </code></pre>
  <pre><code>error NG6004: Present in the NgModule.exports of AppModule but neither declared nor imported.
  </code></pre>
  <p>I am unable to solve the error. Can any of you give any suggestions as to how I can achieve my goal?</p>