From d5eec33960b69d70cee24d9b39afafda657c8609 Mon Sep 17 00:00:00 2001 From: StdVectorBool Date: Fri, 30 Sep 2016 14:32:46 -0700 Subject: [PATCH] docs(style-guide): example of underscore prefix to avoid. (#2501) --- .../ts/03-04/app/core/toast.service.avoid.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.avoid.ts b/public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.avoid.ts index e2e21b8e4c..0f3a7c25ea 100644 --- a/public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.avoid.ts +++ b/public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.avoid.ts @@ -8,19 +8,19 @@ import { Injectable } from '@angular/core'; export class ToastService { message: string; - private toastCount: number; + private _toastCount: number; hide() { - this.toastCount--; - this.log(); + this._toastCount--; + this._log(); } show() { - this.toastCount++; - this.log(); + this._toastCount++; + this._log(); } - private log() { + private _log() { console.log(this.message); } }