title: How to make an offline AngularJS/Cordova app?
body: <p>I have a AngularJS app (embedded in a Cordova app).
  To get and set data, it uses a REST API (that runs on a Django backend server).</p>
  
  <p>I need that the app keeps working for several features even if the network is down.
  For example, I'm expecting this kind of behaviour:</p>
  
  <p><strong>Online Mode</strong></p>
  
  <ul>
  <li>A client does something in the app</li>
  <li>a POST request (to create data) is sent to the API</li>
  <li>The client gets a "Thank you for doing xxx"</li>
  </ul>
  
  <p><strong>Fallback offline mode</strong></p>
  
  <ul>
  <li>A client buys something on the app</li>
  <li>The client gets a "xxx can't be done right now, but it will be done as soon as possible"</li>
  <li>Nothing can be sent to the server since we're offline. So how to do? Is there a way to put the API requests in a queue that will be executed when we're back to online mode?</li>
  </ul>
  
  <p>How would you technically design this? It seems there is lots of differents technologies for offline mode, and it's a little bit confusing to me. Any guidance would be welcome.</p>
  
  <p>Thanks a lot.</p>