docs: Fix code example in the ChangeDetectorRef docs (#18051)

Minor example fix: mark the 'ref' constructor parameter as a private property
This commit is contained in:
meDavid 2017-07-11 20:45:32 +02:00 committed by Igor Minar
parent 9003770f02
commit a9757ec674
1 changed files with 1 additions and 1 deletions

View File

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