From e5b09cc49ae7996369aabeb8ea8e2f8f2b0cf4d6 Mon Sep 17 00:00:00 2001 From: ajitsinghkaler Date: Sat, 11 Apr 2020 12:06:09 +0530 Subject: [PATCH] docs: add example links to 'DoCheck' lifeycle hook docs (#36574) There were some examples for 'DoCheck' in the lifeCycle hooks guide. Added a link to the relevant section of the guide in the 'DoCheck()' api docs. Fixes #35596 PR Close #36574 --- packages/core/src/interface/lifecycle_hooks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/interface/lifecycle_hooks.ts b/packages/core/src/interface/lifecycle_hooks.ts index 45d84c4a80..e73a8791cd 100644 --- a/packages/core/src/interface/lifecycle_hooks.ts +++ b/packages/core/src/interface/lifecycle_hooks.ts @@ -86,6 +86,9 @@ export interface OnInit { * * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='DoCheck'} * + * For a more complete example and discussion, see + * [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection). + * * @publicApi */ export interface DoCheck {