File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ API docs.
141141
142142
143143#### Getters and Setters
144+ * Only use getters and setters for ` @Input ` properties or when otherwise required for API
145+ compatibility.
144146* Avoid long or complex getters and setters. If the logic of an accessor would take more than
145147three lines, introduce a new method to contain the logic.
146148* A getter should immediately precede its corresponding setter.
@@ -205,6 +207,9 @@ specific error being caught and why it cannot be prevented.
205207` align ` because the former much more exactly communicates what the property means.
206208* Except for ` @Input ` properties, use ` is ` and ` has ` prefixes for boolean properties / methods.
207209
210+ ##### Observables
211+ * Don't suffix observables with ` $ ` .
212+
208213##### Classes
209214Classes should be named based on what they're responsible for. Names should capture what the code
210215* does* , not how it is used:
You can’t perform that action at this time.
0 commit comments