docs: clarify the use of classes and interfaces in style guide (#20919)
PR Close #20919
This commit is contained in:
parent
64d16dee02
commit
c8a1a14b87
|
@ -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>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue