title: Electron + angularjs IPC mechanism
body: <p>I am trying to use AngularJs inside Electron. What i'm confused about is, <a href="https://github.com/atom/electron/blob/master/docs/api/ipc-main.md#sending-messages" rel="nofollow">the electron docs here</a> suggest on using something like:</p>
  
  <pre><code>// In renderer process (web page).
  const ipcRenderer = require('electron').ipcRenderer;
  console.log(ipcRenderer.sendSync('synchronous-message', 'ping')); // prints "pong"
  
  ipcRenderer.on('asynchronous-reply', function(event, arg) {
      console.log(arg); // prints "pong"
  });
  ipcRenderer.send('asynchronous-message', 'ping');
  </code></pre>
  
  <blockquote>
    <p>But since Angular is running inside the browser(webkit) I cannot essentially use <code>require</code> to get the ipcRenderer.</p>
  </blockquote>
  
  <p>How would one overcome with this problem.</p>