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: update observable from examples to RxJS V6 (#21572) #26588

Closed
wants to merge 1 commit into from
Closed

docs: update observable from examples to RxJS V6 (#21572) #26588

wants to merge 1 commit into from

Conversation

mat3e
Copy link

@mat3e mat3e commented Oct 19, 2018

From RxJS 6.0.0 there is just from, no fromPromise method.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #21572

What is the new behavior?

Documentation contains just a from method from RxJS.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

My first PR :)

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@mat3e
Copy link
Author

mat3e commented Oct 19, 2018

I fixed my e-mail data in cla.

@googlebot
Copy link

CLAs look good, thanks!

@@ -5,7 +5,7 @@ import {
NgModuleRef,
} from '@angular/core';
import { ELEMENT_MODULE_PATHS_TOKEN } from './element-registry';
import { from as fromPromise, Observable, of } from 'rxjs';
import { from as from, Observable, of } from 'rxjs';
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: redundant symbol alias ie: as from

@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';

import { from as fromPromise, Observable } from 'rxjs';
import { from as from, Observable } from 'rxjs';
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@brandonroberts brandonroberts self-assigned this Nov 8, 2018
@brandonroberts brandonroberts added comp: docs action: review The PR is still awaiting reviews from at least one requested reviewer effort1: hours refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release risk: low state: community Someone from the Angular community is working on this issue or submitted this PR labels Nov 8, 2018
@ngbot ngbot bot added this to the Backlog milestone Nov 8, 2018
From RxJS 6.0.0 there is just `from`, no `fromPromise` method.
@brandonroberts brandonroberts changed the title docs: update to RxJS v6 (#21572) docs: update observable from examples to RxJS V6 (#21572) Nov 8, 2018
@brandonroberts
Copy link
Contributor

Thanks for the PR @mat3e. These changes have already landed in master. If you see something else, open a new PR.

@mat3e mat3e deleted the rxjs-6-docs branch January 22, 2019 15:49
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: review The PR is still awaiting reviews from at least one requested reviewer cla: yes effort1: hours refactoring Issue that involves refactoring or code-cleanup risk: low state: community Someone from the Angular community is working on this issue or submitted this PR target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants