cnak2
cnak2

Reputation: 1841

The purpose of $ at end of a variable

I'm just learning angular 2 and ran across the following:

public progress$ = this._progress.asObservable();

I'm curious as to what the '$' represents at the end of the 'progress' label.

Upvotes: 6

Views: 1872

Answers (1)

Günter Zöchbauer
Günter Zöchbauer

Reputation: 658067

It's just a convention often used for observables that can be subscribed to and emit a stream of events to distinguish it from other members.

Upvotes: 16

Related Questions