@Holmes89 wrote:
I'm new to Ember so please forgive my ignorance. I am working on a search page where I have a route that accepts a search param and is passed to a query:
model(param){ return this.get('store').query("search-result", { filter: {"searchTerm": param["term"]}}); }
When on the template when I try to load the 'displayName' of the result nothing appears. However when I call 'content' which is the other attribute of the object the content renders. Why would this be?
I am using a JSONAPI adapter with a valid (I think) JSONAPI. Here is an example incoming result:
{"data":[{"type":"search-results", "id":"57a4a478a69a6d457a4b7bb7", "attributes":{"content":"blah", "displayName":"foo", "searchTerm":"bar"}, "relationships":{}, "links":{"self":"http://localhost:8080/api/search-results/57a4a478a69a6d457a4b7bb7"}}] }
Any direction would be great thanks!
Posts: 2
Participants: 1