Agents are like microservices that live on a mobile frontend.
This repo includes some examples of Jasonette APIs
You can start by opening the root index.json from Jasonette.
Here's a brief overview:
- trigger: Demonstrates
$agent.trigger. - request: Demonstrates
$agent.requestand$agent.response. - href: Demonstrates
$agent.href - inject: Demonstrates
$agent.inject
- Loads an agent that loads https://news.ycombinator.com
- Injects
inject.jsinto the agent - Executes a function called
fetch, which only parses the DOM and returns an array using$agent.response - The
index.jsonthen renders the returned result, just like it would with any other actions such as$network.request