title: AngularJS Automatically Syncing Data between Server and Client
body: <p>There's something in the AngularJS docs that I can't seem to find or maybe I'm just missing.</p>
  
  <p>I'm creating a web app with NodeJS and Express in the back-end and I'm trying to understand how it can interact with Angular in the front end. In particular, I'll have a JSON API for Angular to fetch the information from. I want for the front end to always be up-to-date.</p>
  
  <p>My questions are:</p>
  
  <ul>
  <li>Does the two-way data binding feature mean Angular ($resource or
  $http) automatically fetches the data from the server every <em>n</em>
  seconds?</li>
  <li>Does it naturally use long polling, short polling or websockets?</li>
  <li>Do you need JQuery to achieve the server-client syncing or can everything be done
  with Angular? </li>
  <li>Do you have to add extra code to make this behavior
  happen? Do I need to use $timeout?</li>
  </ul>
  
  <p>Every example I seem to find involves the client fetching the data once. Not syncing the data with the server. </p>