Skip to content

Commit bb48756

Browse files
naaajiiAndrewKushnir
authored andcommitted
docs: remove plnkr link from markForCheck example (#50328)
PR Close #50328
1 parent 4707d56 commit bb48756

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/core/src/change_detection/change_detector_ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {ViewRef} from '../render3/view_ref';
3333
*
3434
* The following example sets the `OnPush` change-detection strategy for a component
3535
* (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check
36-
* after an interval. See [live demo](https://stackblitz.com/edit/angular-myjuxd?file=src/main.ts).
36+
* after an interval.
3737
*
3838
* <code-example path="core/ts/change_detect/change-detection.ts"
3939
* region="mark-for-check"></code-example>

packages/examples/core/ts/change_detect/change-detection.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
/* tslint:disable:no-console */
9-
import {CommonModule} from '@angular/common';
109
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, NgModule} from '@angular/core';
1110
import {FormsModule} from '@angular/forms';
1211

@@ -16,8 +15,6 @@ import {FormsModule} from '@angular/forms';
1615
selector: 'app-root',
1716
template: `Number of ticks: {{numberOfTicks}}`,
1817
changeDetection: ChangeDetectionStrategy.OnPush,
19-
standalone: true,
20-
imports: [CommonModule]
2118
})
2219

2320
class AppComponent {
@@ -107,6 +104,6 @@ class App1 {
107104
// #enddocregion reattach
108105

109106

110-
@NgModule({declarations: [GiantList, App, LiveData, App1], imports: [FormsModule, AppComponent]})
107+
@NgModule({declarations: [AppComponent, GiantList, App, LiveData, App1], imports: [FormsModule]})
111108
class CoreExamplesModule {
112109
}

0 commit comments

Comments
 (0)