Skip to content

Commit

Permalink
πŸ› amp-bind: close amp-bind-macro tag in example (#20382)
Browse files Browse the repository at this point in the history
Fixes #20368
  • Loading branch information
aghassemi authored and William Chou committed Jan 16, 2019
1 parent 248602d commit 049f005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-bind/amp-bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ encodeURIComponent('Hello world')</pre>
`amp-bind` expression fragments can be reused by defining an `amp-bind-macro`. The `amp-bind-macro` element allows you to define an expression that takes zero or more arguments and references the current state. A macro can be invoked like a function by referencing its `id` attribute value from anywhere in your doc.

```html
<amp-bind-macro id="circleArea" arguments="radius" expression="3.14 * radius * radius" />
<amp-bind-macro id="circleArea" arguments="radius" expression="3.14 * radius * radius"></amp-bind-macro>

<div>
The circle has an area of <span [text]="circleArea(myCircle.radius)">0</span>.
Expand Down

0 comments on commit 049f005

Please sign in to comment.