Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/change_detection/change_detector_ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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://plnkr.co/edit/GC512b?p=preview).
* after an interval. See [live demo](https://stackblitz.com/edit/angular-myjuxd?file=src/main.ts).
*
* <code-example path="core/ts/change_detect/change-detection.ts"
* region="mark-for-check"></code-example>
Expand Down
2 changes: 2 additions & 0 deletions packages/examples/core/ts/change_detect/change-detection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {FormsModule} from '@angular/forms';
selector: 'app-root',
template: `Number of ticks: {{numberOfTicks}}`,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [CommonModule]
})

class AppComponent {
Expand Down