Questions tagged [js-data-angular]

Js-data-angular is an Angular wrapper for js-data that provides injectable resources, simple methods of binding data to the scope, and automatically registers the DSHttpAdapter using Angular's $http service.

19 questions
0
votes
1 answer

Resources not referencing the same related resource

I've defined two resources - Foo and Bar - where Foo contains one Bar. However, when inserting some basic data in this format, if multiple Foo's reference the same Bar, then only the most recently loaded Foo is given a reference to it. Previous…
The DIMM Reaper
  • 3,558
  • 3
  • 28
  • 46
0
votes
1 answer

JSData object property causing an infinite loop

I have a data property that needs to be represented on the backend like this YYYY-MM-DD However angular material date picker needs a date object. So I figure that I'll just use a property. However when I do create a property it causes an infinite…
user133688
  • 6,864
  • 3
  • 20
  • 36
0
votes
1 answer

JS-Data loads data but doesn't render in view

I have followed the js-data angular tutorial to setup js-data-angular in my current project. model definition: .factory('shipmentFactory', function(DS) { return DS.defineResource({ name:'ShipmentInstructions', …
qmarcelle
  • 3
  • 2
0
votes
1 answer

How to make find() accept an array instead of one object?

Using JS-Data 2.6 in Angular, I'm trying to load an array of data using a nice clean URL, e.g. /report/22. (This format makes sense, because it's following business logic - I'm loading a report data by category id, and getting several rows…
analytik
  • 792
  • 6
  • 16
1
2