What does $ sign at the end of function name indicate?

前端 未结 4 1601
自闭症患者
自闭症患者 2020-12-24 05:12

Here is the code I\'m reviewing...

import { Observable } from \'rxjs/Rx\';
// reducer
import { playerRegister, PlayerState } from \'./player\';
export functi         


        
4条回答
  •  没有蜡笔的小新
    2020-12-24 06:06

    For a function it means it returns an observable.

    For a variable it means it is an observable.

    This notation is widely used in Angular projects and I find it very useful to quickly see that it is an observable and not the actual value.

提交回复
热议问题