docs: clarify the use of classes and interfaces in style guide (#20919)
PR Close #20919
This commit is contained in:

committed by
Miško Hevery

parent
a15a2b46d1
commit
1626e74c59
@ -1904,7 +1904,18 @@ It is rarely worth the effort to change them at the risk of breaking existing co
|
||||
|
||||
|
||||
|
||||
**Consider** using a class instead of an interface.
|
||||
**Consider** using a class instead of an interface for services and declarables (components, directives, and pipes).
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="s-rule consider">
|
||||
|
||||
|
||||
|
||||
**Consider** using an interface for data models.
|
||||
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user