Skip to content

Commit d1f265d

Browse files
authored
Update CODING_STANDARDS.md
Expand with more points
1 parent d8c27eb commit d1f265d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CODING_STANDARDS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ API docs.
172172
* Always use a `readonly` property instead of a getter (with no setter) when possible.
173173
* Avoid long getters and setters. If the logic of an accessor would take more than three lines,
174174
introduce a new method to contain the logic.
175+
* A getter should also immediately precede its corresponding setter.
176+
* Decorators such as `@Input` should be applied to the getter and not the setter.
175177

176178
#### JsDoc comments
177179

0 commit comments

Comments
 (0)