Skip to content

Instantly share code, notes, and snippets.

@vishnu1991
Created October 23, 2018 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vishnu1991/b49a1f73b81f349f5648b763cae2cbdf to your computer and use it in GitHub Desktop.
Save vishnu1991/b49a1f73b81f349f5648b763cae2cbdf to your computer and use it in GitHub Desktop.
{
"type": "label",
"text": "refresh",
"action": {
"type": "$network.request",
"options": {
"url": "https://jasonbase.com/things/jYJ.json"
},
"success": {
"type": "$render"
},
"error": {
"type": "$util.banner",
"options": {
"title": "Error",
"description": "Something went wrong."
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment