JSON Patch for Angular
JavaScript PHP TypeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
examples
src
.gitignore
CHANGELOG.md
Gruntfile.js
README.md
index.php
package.json

README.md

Angular Patch

Synchronizes Angular scope with the server using JSON Patch protocol (draft-ietf-appsawg-json-patch-10).

Demo

The current version should be deployed here:

Usage

Include the library files (see dist/ directory):

<script src="examples/js/angular.min.js"></script>
<script src="dist/angular-patch.js"></script>

Make sure the starcounterLib module (that comes from angular-patch.js) is loaded in ngApp. The basic usage is:

<html ng-app="starcounterLib">

Even simplier, you can use the directive ng-remoteapp that will inject module starcounterLib for you.

<html ng-remoteapp="list other modules here, divided by comma, starcounterLib does not have to be here">

From now on, changes in root scope will be sent to server.

More docs will follow soon

Further development

This is work in progress and it is not yet considered production ready. Please submit your comments in GitHub Issues board.