title: Need to add ReactiveFormsModule to Angular custom library, but does not seem possible
body: <p>I am trying to use reactive forms in my Angular custom library that I am building. I manually added @angular/forms to the library's package.json's peerDependencies as such:</p>
  
  <pre><code>{ "name": "abc-library"
   "version": "0.0.1",
   "peerDependencies": {
    "@angular/common": "7.1.3",
    "@angular/core": "7.1.3",
    "@angular/forms: "7.1.3"
   }
  }
  </code></pre>
  
  <p>Then I added the following template code to my component:</p>
  
  <pre><code>template: `&lt;form [formGroup] = "abcForm"&gt;...&lt;/form&gt;'
  </code></pre>
  
  <p>When I try to build the component, I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/OlLoA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OlLoA.png" alt="Can&#39;t bind to formGroup"></a></p>
  
  <p>I'm at a loss as to what to do because this is a library, not part of the main application. I already have Reactive Forms working great in my main application. When I checked online about this error, the resolution was to import ReactiveFormsModule into the NgModule, but since the custom library does not have something like app.module.ts, I am unsure what to do.</p>