title: Is approach I have mentioned OK to call AngularJS function of WebBrowser control from WinForm App
body: <p>My requirement is to load HTML5/AngularJS form in the web browser control of WinForm app and exchange data between both. </p>
  
  <p>To pass data from .Net form to WebBrowser control HTML/Angular form, I thought to call simple JavaScript method of HTML page and that method would subsequently trigger Angular complex workflow.</p>
  
  <p>This is how I do call JavaScript function from my winform. </p>
  
  <pre><code>WebBrowserControl1.InvokeScript("FunctionName", new object[] {"param"});
  </code></pre>
  
  <p><strong>Could you suggest whether this approach is good for large applciation or there is a better way to pass data from .net winform to webbrowser AngularJS form.</strong></p>
  
  <p>Please note sometime back I have posted question to call Typescript function and I got answer as well. However, that was to initialize class of Angular from webbrowser control which is not feasible for complex Angular app.</p>
  
  <p>Hence I have thought this approach to call simple JS function of Angular page and that would trigger complex angular flow. </p>
  
  <p><a href="https://stackoverflow.com/questions/41264672/call-typescript-function-from-c-sharp-webbrowser-control">Call TypeScript function from C# webbrowser control</a></p>
  
  <p>Thanks in advance for your help. </p>
  
  <p>Thanks,
  Manoj </p>