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

docs(operators): fix code example #6577

Merged
merged 6 commits into from Sep 18, 2021

Conversation

diyews
Copy link
Contributor

@diyews diyews commented Aug 22, 2021

Description:

Going to fix code examples so that can run in stackblitz.

* const div = document.createElement('div');
* div.style.cssText = `width: 200px;height: 200px;background: #09c;`;
* document.body.appendChild(div);
*
* const clicks = fromEvent(document, 'click');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, find, findIndex, first all need a div element to run the example. Or maybe we can refactor to use Typescript only, eg:

range(1, 10)
  .pipe(filter(x => x % 2 === 1))

diyews and others added 2 commits August 29, 2021 22:04
Co-authored-by: Mladen Jakovljević <jakovljevic.mladen@gmail.com>
@diyews diyews marked this pull request as ready for review August 29, 2021 14:20
Copy link
Member

@benlesh benlesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @diyews!

@diyews
Copy link
Contributor Author

diyews commented Sep 1, 2021

😢 My mistake, the connect example works but just missing some imports. Add a commit to rollback.
Just some little things I can do while learning the operators. No thanks.

@benlesh benlesh merged commit a120003 into ReactiveX:master Sep 18, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants