Skip to content

Commit

Permalink
docs: Fix code example in the ChangeDetectorRef docs (angular#18051)
Browse files Browse the repository at this point in the history
Minor example fix: mark the 'ref' constructor parameter as a private property
  • Loading branch information
meDavid authored and juleskremer committed Aug 24, 2017
1 parent 0541bb1 commit 08e5997
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -26,7 +26,7 @@ export abstract class ChangeDetectorRef {
* class Cmp {
* numberOfTicks = 0;
*
* constructor(ref: ChangeDetectorRef) {
* constructor(private ref: ChangeDetectorRef) {
* setInterval(() => {
* this.numberOfTicks ++
* // the following is required, otherwise the view will not be updated
Expand Down

0 comments on commit 08e5997

Please sign in to comment.