Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JSON Patch for Angular
JavaScript PHP TypeScript
Branch: master
Failed to load latest commit information.
dist bugfix: $null was working only on first click
examples Angular Patch 0.1.8 - upgrade to JSON Patch Draft 10 and the new JSON…
src bugfix: $null was working only on first click
.gitignore
CHANGELOG.md Angular Patch 0.1.8 - upgrade to JSON Patch Draft 10 and the new JSON…
Gruntfile.js Angular Patch 0.1.8 - upgrade to JSON Patch Draft 10 and the new JSON…
README.md update link to current draft
index.php Angular Patch 0.1.8 - upgrade to JSON Patch Draft 10 and the new JSON…
package.json Angular Patch 0.1.8 - upgrade to JSON Patch Draft 10 and the new 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.

Something went wrong with that request. Please try again.