From bb4875682d5b280d6b7433596c025ec555d77ef7 Mon Sep 17 00:00:00 2001 From: Naaajii Date: Wed, 17 May 2023 03:43:04 +0500 Subject: [PATCH] docs: remove plnkr link from markForCheck example (#50328) PR Close #50328 --- packages/core/src/change_detection/change_detector_ref.ts | 2 +- packages/examples/core/ts/change_detect/change-detection.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/src/change_detection/change_detector_ref.ts b/packages/core/src/change_detection/change_detector_ref.ts index 044b197fef6..9ae8b1c3be5 100644 --- a/packages/core/src/change_detection/change_detector_ref.ts +++ b/packages/core/src/change_detection/change_detector_ref.ts @@ -33,7 +33,7 @@ import {ViewRef} from '../render3/view_ref'; * * The following example sets the `OnPush` change-detection strategy for a component * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check - * after an interval. See [live demo](https://stackblitz.com/edit/angular-myjuxd?file=src/main.ts). + * after an interval. * * diff --git a/packages/examples/core/ts/change_detect/change-detection.ts b/packages/examples/core/ts/change_detect/change-detection.ts index 4bed7ad34da..1f7446a5cfc 100644 --- a/packages/examples/core/ts/change_detect/change-detection.ts +++ b/packages/examples/core/ts/change_detect/change-detection.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.io/license */ /* tslint:disable:no-console */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, NgModule} from '@angular/core'; import {FormsModule} from '@angular/forms'; @@ -16,8 +15,6 @@ import {FormsModule} from '@angular/forms'; selector: 'app-root', template: `Number of ticks: {{numberOfTicks}}`, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, - imports: [CommonModule] }) class AppComponent { @@ -107,6 +104,6 @@ class App1 { // #enddocregion reattach -@NgModule({declarations: [GiantList, App, LiveData, App1], imports: [FormsModule, AppComponent]}) +@NgModule({declarations: [AppComponent, GiantList, App, LiveData, App1], imports: [FormsModule]}) class CoreExamplesModule { }