*response
*response maps parsed responses from *fetch, *post, *api, and *upload into host data.
Every successful communication response is mirrored to $response. Without *response, normal host data is not changed for directives that only mirror to $response. *fetch keeps its historical root replacement behavior when no *response is present.
<button *post="'/api/save'" *keys="form" *response="'result'">
Save
</button>
This stores the whole response in data.result.
<button
*post="'/api/profile'"
*keys="profile"
*response="{ user.name: response.profile.name }">
Save
</button>
Map form writes response values into Sercrod data paths. Do not prefix the left side with data..
<section *fetch="/api/items.json" *response="'items'"></section>