title: Pass environment.ts To Angular Library Module
body: <p>I am building an Angular library which will expose a service and middleware to perform authentication when imported into other Angular apps.</p>
  
  <p>Before trying to pull this module into a standalone <a href="https://angular.io/guide/creating-libraries#getting-started" rel="nofollow noreferrer">Angular Library</a>, it was relying on the <code>environment.ts</code> file in the application (I just imported it like so: <code>import { environment } from '../../../environments/environment';</code>).</p>
  
  <p>How do I pass the environment file to a module that will now be imported into my Angular application?</p>
  
  <p>Or is it better to pass the <code>environment</code> file, as JSON, to each service and piece of middleware I am exposing?</p>