From c8a1a14b87e5907458e8e87021e47f9796cb3257 Mon Sep 17 00:00:00 2001 From: Fabian Wiles Date: Sun, 10 Dec 2017 11:04:41 +1300 Subject: [PATCH] docs: clarify the use of classes and interfaces in style guide (#20919) PR Close #20919 --- aio/content/guide/styleguide.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/aio/content/guide/styleguide.md b/aio/content/guide/styleguide.md index e6eb49e3e1..c73cebe4dc 100644 --- a/aio/content/guide/styleguide.md +++ b/aio/content/guide/styleguide.md @@ -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). + + + + + + +
+ + + +**Consider** using an interface for data models.