Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hello World in amp4email
<!doctype html>
<html amp4email>
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script>
<style amp4email-boilerplate>body { visibility:hidden }</style>
</head>
<body>
<h1 [text]="'Bonjour ' + state.username + '&nbsp;!'">
Bonjour&nbsp;!
</h1>
<input on="input-throttled:AMP.setState({state:{username: event.value}})" />
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur autem adipisci iure id alias consequatur. Ex nostrum deserunt nihil blanditiis vero, laborum mollitia, ea aspernatur delectus, tempore, labore autem quisquam.
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.