mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: remove plnkr link from markForCheck example (#50328)
PR Close #50328
This commit is contained in:
parent
4707d5678a
commit
bb4875682d
2 changed files with 2 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue