title: read or write file to filesystem with angular
body: <p>I will read/write a file with angular from/to my hdd. I normaly use node module "fs". Whats the best practice to combine this module with angular to use it in node webkit?</p>
  
  <p>Thanks!</p>
  
  <p>Edit: (can't use require in angular to load npm modules. any ideas?)</p>
  
  <pre><code>.service("WindowService", WindowService);
  
          function WindowService() {
              this.gui = require('nw.gui');
          }
  </code></pre>