{"__v":1,"_id":"57804064827bd50e006b0508","category":{"version":"57804064827bd50e006b04fc","project":"54344d89bfaa3d0800c4d7fa","_id":"57804064827bd50e006b04fd","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-07T22:53:45.315Z","from_sync":false,"order":0,"slug":"guides","title":"Guides"},"project":"54344d89bfaa3d0800c4d7fa","user":"54344d6cbfaa3d0800c4d7f7","version":{"__v":1,"_id":"57804064827bd50e006b04fc","project":"54344d89bfaa3d0800c4d7fa","createdAt":"2016-07-09T00:08:04.866Z","releaseDate":"2016-07-09T00:08:04.866Z","categories":["57804064827bd50e006b04fd","57804064827bd50e006b04fe","57804064827bd50e006b04ff","57804064827bd50e006b0500","57804064827bd50e006b0501"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.9.0","version":"2.9"},"updates":["57d99a87ed63190e0022d37b"],"next":{"pages":[],"description":""},"createdAt":"2015-06-29T00:00:25.378Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"- [Introduction to JSData](http://plnkr.co/edit/H0XBoFdaGI4k6YOf3BW0?p=info)\n- [js-data-angular bindOne and bindAll examples](http://plnkr.co/edit/wveT2J?p=preview)\n- [js-data-angular bindAll example](http://plnkr.co/edit/NMQZuj?p=info)\n- [Example loading js-data + js-data-http with SystemJS](http://plnkr.co/edit/Ej3lcH)\n- [Collections](http://plnkr.co/edit/ENl1Gh?p=info)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Relations\"\n}\n[/block]\n- [belongsTo/hasMany relations](http://plnkr.co/edit/RzS7ot?p=info) (firebase)\n- [belongsTo/hasMany relations](http://plnkr.co/edit/nW0P2k?p=preview) (http)\n- [many-to-many relations](http://plnkr.co/edit/UToFcQ?p=info)\n- [Sideloading hasMany relation](http://plnkr.co/edit/Fo1L0wOz5TtipPp8gz3v?p=info)\n- [hasOne relation example](http://plnkr.co/edit/0hMiB4?p=preview)\n- [Example of a Resource having a relation to itself (tree-like structure)](http://plnkr.co/edit/6FomKfxm5D5CqyIINdGH?p=info)\n- [Multiple belongsTo relations that rely on the same `localKey`, only works when the primary keys are GUIDs](http://plnkr.co/edit/wORbMz?p=preview)\n- [Multiple belongsTo relations that rely on the same `localKey`, but uses custom getters, so it works with numeric primary keys](http://plnkr.co/edit/EZYRRt?p=preview)\n- [belongsTo/hasOne same localField and localKey, Sails?](http://plnkr.co/edit/DwbJOS?p=preview)\n- [relations with parents](http://plnkr.co/edit/I8moM7IGAN38AXGM1A67?p=preview)\n- [more relations with parents](http://plnkr.co/edit/dyuR9u?p=preview)\n- [Netflix Falcor-like effect with custom relation getters](http://plnkr.co/edit/4YA8yY?p=preview)\n- [Deserialize Rails side-loaded data](http://plnkr.co/edit/ggZYCV?p=preview)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Instances\"\n}\n[/block]\n- [Custom instance constructor and events](http://plnkr.co/edit/h30EHO?p=info)\n- [Custom instance constructor with property accessors](http://plnkr.co/edit/vNCoC8?p=info)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Adapters\"\n}\n[/block]\n- [js-data + js-data-angular + second http adapter instance](http://plnkr.co/edit/gD9ypO?p=info)\n- [Example of configuring js-data-http to use `window.fetch` if available](http://plnkr.co/edit/gNiYoC?p=preview)\n- [sync everything to localStorage](http://plnkr.co/edit/yVQden?p=preview)\n- [firebase + localstorage](https://gist.github.com/jmdobry/cf489a3025b8087fe21a)","excerpt":"A collection of examples","slug":"examples","type":"basic","title":"Examples"}

Examples

A collection of examples

- [Introduction to JSData](http://plnkr.co/edit/H0XBoFdaGI4k6YOf3BW0?p=info) - [js-data-angular bindOne and bindAll examples](http://plnkr.co/edit/wveT2J?p=preview) - [js-data-angular bindAll example](http://plnkr.co/edit/NMQZuj?p=info) - [Example loading js-data + js-data-http with SystemJS](http://plnkr.co/edit/Ej3lcH) - [Collections](http://plnkr.co/edit/ENl1Gh?p=info) [block:api-header] { "type": "basic", "title": "Relations" } [/block] - [belongsTo/hasMany relations](http://plnkr.co/edit/RzS7ot?p=info) (firebase) - [belongsTo/hasMany relations](http://plnkr.co/edit/nW0P2k?p=preview) (http) - [many-to-many relations](http://plnkr.co/edit/UToFcQ?p=info) - [Sideloading hasMany relation](http://plnkr.co/edit/Fo1L0wOz5TtipPp8gz3v?p=info) - [hasOne relation example](http://plnkr.co/edit/0hMiB4?p=preview) - [Example of a Resource having a relation to itself (tree-like structure)](http://plnkr.co/edit/6FomKfxm5D5CqyIINdGH?p=info) - [Multiple belongsTo relations that rely on the same `localKey`, only works when the primary keys are GUIDs](http://plnkr.co/edit/wORbMz?p=preview) - [Multiple belongsTo relations that rely on the same `localKey`, but uses custom getters, so it works with numeric primary keys](http://plnkr.co/edit/EZYRRt?p=preview) - [belongsTo/hasOne same localField and localKey, Sails?](http://plnkr.co/edit/DwbJOS?p=preview) - [relations with parents](http://plnkr.co/edit/I8moM7IGAN38AXGM1A67?p=preview) - [more relations with parents](http://plnkr.co/edit/dyuR9u?p=preview) - [Netflix Falcor-like effect with custom relation getters](http://plnkr.co/edit/4YA8yY?p=preview) - [Deserialize Rails side-loaded data](http://plnkr.co/edit/ggZYCV?p=preview) [block:api-header] { "type": "basic", "title": "Instances" } [/block] - [Custom instance constructor and events](http://plnkr.co/edit/h30EHO?p=info) - [Custom instance constructor with property accessors](http://plnkr.co/edit/vNCoC8?p=info) [block:api-header] { "type": "basic", "title": "Adapters" } [/block] - [js-data + js-data-angular + second http adapter instance](http://plnkr.co/edit/gD9ypO?p=info) - [Example of configuring js-data-http to use `window.fetch` if available](http://plnkr.co/edit/gNiYoC?p=preview) - [sync everything to localStorage](http://plnkr.co/edit/yVQden?p=preview) - [firebase + localstorage](https://gist.github.com/jmdobry/cf489a3025b8087fe21a)