This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manually setting the object from the data works.... | |
In AppState | |
------------- | |
@action setSingle(data) { | |
this.item = { | |
title: data.title.rendered, | |
content: data.content.rendered | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I switched the endpoint for the async call, so it returns this: | |
The JSON Data | |
--------------------------------- | |
{ | |
"id": 413, | |
"date": "2016-09-09T23:29:45", | |
"date_gmt": "2016-09-09T23:29:45", | |
"guid": { | |
"rendered": "http://localhost/sandbox1/quod-nihil-et-quod-qui-fugit/" |