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 { }