Description

The response directive sends a query to the twigkit API and stores the response on a scoped variable and in the Response Service Inside of the tag you can access the average response time ($parent.averageResponseTime) and the previous response time ($parent.previousResponseTime).

Usage

as element:
<search:response
       var="{string}"
       platform="{object}"
       query="{object}"
       [error-page="{string}"]
       [on="{string}"]>
</search:response>

Directive info

  • This directive creates new scope.

Parameters

ParamTypeDetails
varstringThe name of the variable to store the response in
platformobjectThe platform to query against
queryobjectA query object
error-page (optional)stringError page to redirect to when Platform throws an exception.
on (optional)stringEvent that is broadcasted for when the response should reload. Default: reloadSearch.