docs: clarify the use of classes and interfaces in style guide (#20919)

PR Close #20919
This commit is contained in:
Fabian Wiles 2017-12-10 11:04:41 +13:00 committed by Miško Hevery
parent 64d16dee02
commit c8a1a14b87
1 changed files with 12 additions and 1 deletions

View File

@ -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>