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
1 changed files with 6 additions and 6 deletions

View File

@ -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);
}
}