I need to make a call from window.external on angular 2 and expose a json as parameter.
Something like the example below.
C#
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
   public class ScriptInterface
   {
      void callMe(string json)
      {
       … // Do something interesting
      }
   } 
   webBrowser1.ObjectForScripting = new ScriptInterface();
Angular 2
window.external.callMe(json);
Anyone have any suggestions?
Thanks
 
    