DEV Community

Discussion on: How to display observable of an object in angular

Collapse
 
vivekpandita profile image
Vivek Pandita

Why you have used $ sign with observable property in above examples like astring$, myself$? Is it any convention?

Collapse
 
isamrish profile image
Amrish Kushwaha • Edited

I don't know whether it is convention or not. I generally use $ sign at the end of variable to differentiate variables between regular and observable ones.

Collapse
 
francisrod01 profile image
Francis Rodrigues

Yes, it is defined as a naming convention for Observables.
stackoverflow.com/a/37928549/3332734
angular.io/guide/rx-library#naming...