Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some typos in book #1

Open
grace-shi opened this issue May 16, 2018 · 0 comments
Open

Some typos in book #1

grace-shi opened this issue May 16, 2018 · 0 comments

Comments

@grace-shi
Copy link

grace-shi commented May 16, 2018

  • 书中第二章,第37页例子
const producer = new �Producer()
const cold$ = new Observable(observer => {...})

这里应该为 hot$, 因为数据的产生与observable 是独立的。

  • 第39页代码例子第3行
mapped subscribe(console.log)

缺一个点

  • 48页第21行
上面代码导入的模块是node_modules/rxjs/add/observable/of.js, 其中的代码是再Observable的prototype属性上增加一个函数,

of 应该是静态操作符,应该是在Observable上添加of 方法,而不是prototype上。

@grace-shi grace-shi changed the title Chapter 2, page 37 typo Some typos in book May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant