Created
June 10, 2018 15:23
-
-
Save sanjsanj/8e86a8bed49beada358efb8235469ebd to your computer and use it in GitHub Desktop.
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
<!-- Hardcoded state --> | |
<amp-state id="state"> | |
<script type="application/json"> | |
{ | |
"name": "General Leia Organa-Solo" | |
} | |
</script> | |
</amp-state> | |
<!-- State that fetches remote data --> | |
<amp-state id="remoteState" src="https://www.swapi.co/api/people/..."> | |
</amp-state> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment