Last active
June 10, 2018 16:30
-
-
Save sanjsanj/31d47c40d8da428b51d3c0c0e55fbca2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<button | |
on="tap:AMP.setState({ | |
remoteState: 'https://swapi.co/api/people/' + ((random() * 10).toFixed() * 5) + '/?format=json' | |
})"> | |
Random Star Wars Character | |
</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment