Synchronizes Angular scope with the server using JSON Patch protocol (draft-ietf-appsawg-json-patch-10).
The current version should be deployed here:
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:
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
This is work in progress and it is not yet considered production ready. Please submit your comments in GitHub Issues board.