You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2021. It is now read-only.
When I call customerService.getStores(customer) I get the error Error: object is not hal resource [<array of stores>]. It doesn't change a thing if I comment out the stores field in the CustomerResource type or not. However, fetching the customer in the first place works fine. And I don't see any difference to your example code (besides the await statements) in the wiki.
There is a alternate approach that actually works, but I guess it wasn't meant to be (looks a bit ugly to me ;)
As you may already have guessed by the @Injectable() decorator, I'm using Angular 5 and calling resource.fetch() returns a ZoneAwarePromise. Maybe that's a clue.
There is this setup:
When I call
customerService.getStores(customer)I get the errorError: object is not hal resource [<array of stores>]. It doesn't change a thing if I comment out thestoresfield in theCustomerResourcetype or not. However, fetching the customer in the first place works fine. And I don't see any difference to your example code (besides theawaitstatements) in the wiki.There is a alternate approach that actually works, but I guess it wasn't meant to be (looks a bit ugly to me ;)
As you may already have guessed by the
@Injectable()decorator, I'm using Angular 5 and callingresource.fetch()returns aZoneAwarePromise. Maybe that's a clue.