Skip to content

Save Angular JS $http requests when you are offline, and execute when you are online.

License

Notifications You must be signed in to change notification settings

elsangedy/ngSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngSync

Save Angular JS $http requests when you are offline, and execute when you are online

Example usage:

var module = angular.module('myModule', ['ngSync']);

module.config(['$httpProvider', '$syncProvider', function($httpProvider, $syncProvider)
{
  $httpProvider.interceptors.push('SyncInterceptor');

  $syncProvider.options({
    urlRoot: 'http://api.mydomain.com/v1/' // empty for all urls
    // other configs
  });
}]);

Installation Guide

Enter the following commands in the terminal

$ git clone https://github.com/munir7/ngSync.git
$ cd ngSync
$ npm install
$ gulp

Prerequisites

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

About

Save Angular JS $http requests when you are offline, and execute when you are online.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published