title: server side data in angular
body: <p>I am trying to make GET request with node request module. I am making request to the coursera api. As the api is using CORS. Therefore I have to make server side requests.
  But the thing is how to use this data in index.html to dynamically fill data.</p>
  
  <p>As here I am getting the whole data to the file. Is there any way to give this data to the Angular controller.</p>
  
  <p>In brief, I want to use data from coursera api inside my angular app. I have used client side so know less about server side. </p>
  
  <pre><code>var request = require("request");
  var fs = require("fs");
  request("https://api.coursera.org/api/courses.v1").pipe(fs.createWriteStream("data.json"));
  </code></pre>