Skip to content

Files

Latest commit

 

History

History
17 lines (11 loc) · 627 Bytes

directive-selector.md

File metadata and controls

17 lines (11 loc) · 627 Bytes

Pattern: Invalid directive selector name

Issue: -

Description

Directive selectors should follow given naming rules.

  • Consistent conventions make it easy to quickly identify and reference assets of different types.
  • Makes it easier to promote and share the directive in other apps.
  • Directives are easy to identify in the DOM.
  • Keeps the element names consistent with the specification for Custom Elements.
  • It is easier to recognize that a symbol is a directive by looking at the template’s HTML.

Further Reading