title: Is it possible to call Typescript Method in HTML Javascript?
body: <p>I have a Webprojekt with FireBaseCloudMessaging running. Now i have to call a Method in a Typescript File to reload the Messages on Notification. Is this Possible?</p>
  
  <p><strong>HTML Part (index.html)</strong></p>
  
  <pre><code>&lt;script src="https://www.gstatic.com/firebasejs/4.3.0/firebase.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      messaging.onMessage(function(payload) {
          console.log("Message received. ", payload);
          // ChatDialog.reloadMessages(); &lt;-- Here i have to call the Typescript Method
      });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>ChatDialog.ts</strong></p>
  
  <pre><code>//This is the Method i have to call!
      reloadMessages(){
          this.messages.removeAll();
          localStorage.clear();
          ChatFunctions.getMessages(this, this.partner_id);
      }
  </code></pre>