Skip to content

Intent to implement: Bind #6199

@dreamofabear

Description

@dreamofabear

Summary

Bind is a new AMP extension that allows elements to mutate in response to user actions or data changes via data binding and simple JS-like expressions.

This will allow publishers to build responsive UIs for use cases not covered by existing AMP extended components. See #5059 for possible use cases.

Usage

In this example, the <p> element will have its textContent changed from "" to "Hello World".

<amp-dataset id=”foo”>{ bar: “Hello World” }</amp-dataset>
<p [text]=”foo.bar”></p>

Syntax is subject to change.

Details

Syntax discussion: #5760
Design doc: Link

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions