docs(style-guide): example of underscore prefix to avoid. (#2501)

This commit is contained in:
StdVectorBool 2016-09-30 14:32:46 -07:00 committed by Jesús Rodríguez
parent c548f9700b
commit d5eec33960

View File

@ -8,19 +8,19 @@ import { Injectable } from '@angular/core';
export class ToastService { export class ToastService {
message: string; message: string;
private toastCount: number; private _toastCount: number;
hide() { hide() {
this.toastCount--; this._toastCount--;
this.log(); this._log();
} }
show() { show() {
this.toastCount++; this._toastCount++;
this.log(); this._log();
} }
private log() { private _log() {
console.log(this.message); console.log(this.message);
} }
} }