Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit d5eec33

Browse files
StdVectorBoolFoxandxss
authored andcommitted
docs(style-guide): example of underscore prefix to avoid. (#2501)
1 parent c548f97 commit d5eec33

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.avoid.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ import { Injectable } from '@angular/core';
88
export class ToastService {
99
message: string;
1010

11-
private toastCount: number;
11+
private _toastCount: number;
1212

1313
hide() {
14-
this.toastCount--;
15-
this.log();
14+
this._toastCount--;
15+
this._log();
1616
}
1717

1818
show() {
19-
this.toastCount++;
20-
this.log();
19+
this._toastCount++;
20+
this._log();
2121
}
2222

23-
private log() {
23+
private _log() {
2424
console.log(this.message);
2525
}
2626
}

0 commit comments

Comments
 (0)