forked from webcomponents/gold-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Plain Tag
zishanj edited this page May 29, 2015
·
5 revisions
Checklist » [DOM Presence](Home#DOM Presence)
Can you instantiate the component with just a plain tag (<my-element>) or a standard tag with an is attribute (<input is="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.