title: Creating a library in angular to be used in any project
body: <p>I am trying to create an application in angular version 6 which can generate js as output where the application can be embedded directly in any application.</p>
  
  <p>Eg. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="entryID"/&gt;
  &lt;script src="angularapp.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  AngularApp.App({
      inputParam1: 'param1'
      user: { id: 'userid' },
      resize: 'detect'
    }, document.getElementById("entryID"));
    &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here entryID is used for the div to initialize the application and fit in the div</p>