docs: remove plnkr link from markForCheck example (#50328)

PR Close #50328
This commit is contained in:
Naaajii 2023-05-17 03:43:04 +05:00 committed by Andrew Kushnir
parent 4707d5678a
commit bb4875682d
2 changed files with 2 additions and 5 deletions

View file

@ -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.
*
* <code-example path="core/ts/change_detect/change-detection.ts"
* region="mark-for-check"></code-example>

View file

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