Skip to content

Commit

Permalink
add link to article by thomas broyer
Browse files Browse the repository at this point in the history
  • Loading branch information
jsebrech committed Oct 20, 2024
1 parent 20783cb commit e18bedd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/pages/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,12 @@ <h3>Beware of XSS</h3>
</p>
</aside>

<p>
The best practice way of implementing attributes, properties and events is subtle and opinionated.
The article <a href="https://blog.ltgt.net/web-component-properties/">making web components behave closer to the platform</a> explains how custom elements can be made to behave like built-in elements,
and is recommended reading when making web components that will be embedded in third-party sites.
</p>

<h3>Methods</h3>
<p>The third way to pass complex data is by calling a method on the web component, as exemplified by the <code>&lt;santas-summary&gt;</code> component:</p>
<x-code-viewer src="./examples/components/data/components/summary.js" name="components/summary.js"></x-code-viewer>
Expand Down

0 comments on commit e18bedd

Please sign in to comment.