Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Plain Tag

Jan Miksovsky edited this page Sep 30, 2020 · 7 revisions

Checklist » DOM Presence

✓ Plain Tag

Can you instantiate the component with just a plain tag (<my-element>)?

Using a standard tag with an is attribute will provide support for external libraries to bind to these elements, like AngularJS. Because libraries like AngularJS binds to native HTML tag and using it with a standard tag will provide bidirectional binding.

[This article is a stub, and is not yet complete.]

No attributes, children, methods, event handlers, styles, etc. should be required to instantiate the component. E.g., a component that wants to enumerate its children should cope with the case where it has no children.

Clone this wiki locally