title: AddThis Not Working in Angular 6/7 Project
body: <p>Working on an Angular 6/7 site where AddThis is required to share pages.  For starters, set up a simple HTML page as follows: </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;AddThis below&lt;/div&gt;
      &lt;div class="addthis_toolbox addthis_default_style addthis_32x32_style"&gt;
          &lt;a class="addthis_button_facebook"&gt;&lt;/a&gt;
          &lt;a class="addthis_button_twitter"&gt;&lt;/a&gt;
          &lt;a class="addthis_button_email"&gt;&lt;/a&gt;
          &lt;a class="addthis_button_linkedin"&gt;&lt;/a&gt;
          &lt;a class="addthis_button_compact"&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;AddThis above&lt;/div&gt;
      &lt;script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5c2bf6b040727c90" async="async"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>This works and displays buttons as expected.  </p>
  
  <p>Then tried to move it into Angular.  Set up a simple component to hold the HTML.  Tried putting the script tag into index.html.  Also tried it in the component.  In no case was I able to get it to display anything.  </p>
  
  <p>Set up a StackBlitz <a href="https://stackblitz.com/edit/angular-addthis" rel="nofollow noreferrer">angular-addthis</a></p>
  
  <p>Then consulted with AddThis tech support. They indicated I might have to run a method (addthis.layers.refresh()) to refresh after routing ... but it never gets that far.  Nothing displays.  </p>
  
  <p>In the StackBlitz, the AddThis code is app.component.  The test HTML is in standalone.html.  </p>
  
  <p>Any ideas appreciated.  </p>