From fd4dbcb0c70c5249b7d77e6260b900901011dd28 Mon Sep 17 00:00:00 2001 From: Lars Gyrup Brink Nielsen Date: Mon, 17 May 2021 14:01:18 +0200 Subject: [PATCH] docs: decorate input properties with @Input (#42128) PR Close #42128 --- aio/content/guide/template-typecheck.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aio/content/guide/template-typecheck.md b/aio/content/guide/template-typecheck.md index c9ce6a5d90..3891a8584f 100644 --- a/aio/content/guide/template-typecheck.md +++ b/aio/content/guide/template-typecheck.md @@ -228,6 +228,7 @@ Consider the following directive: class SubmitButton { private _disabled: boolean; + @Input() get disabled(): boolean { return this._disabled; } @@ -269,6 +270,7 @@ As a workaround for this problem, Angular supports checking a wider, more permis class SubmitButton { private _disabled: boolean; + @Input() get disabled(): boolean { return this._disabled; }