Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 396cd72

Browse files
author
John Papa
committed
minko suggestion on elements for components
1 parent d2f99c8 commit 396cd72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

public/docs/ts/latest/guide/style-guide.jade

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,8 @@ a(href="#toc") Back to top
710710
**Why?**: Components have templates containing HTML and optional Angular template syntax. They are most associated with putting content on a page, and thus are more closely aligned with elements.
711711

712712
**Why?**: Components are derived from Directives, and thus their selectors can be elements, attributes, or other selectors. Defining the selector as an element provides consistency for components that represent content with a template.
713+
714+
**Why?**: It is easier to recognize that a symbol is a component vs a directive by looking at the template's html.
713715

714716
```
715717
/* avoid */

0 commit comments

Comments
 (0)