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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc error - Observe geolocation updates #27597
Comments
See if this PR fixes it #27260 |
Quick like a lightning!!! |
I spoke too fast, the PR does not solve the problem |
Any idea how to fix this? |
@dariobraun Try this:
|
This was fixed by PR 34705. I am therefore closing this issue. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃摎 Docs or angular.io bug report
Description
I try your example of geolocation updates via Observables and I got an error.馃敩 Minimal Reproduction
What's the affected URL?**
https://angular.io/guide/observablesReproduction Steps**
Copy paste your example in a new Angular project and run馃敟 Exception or Error
馃實 Your Environment
Angular 7.0.0
Rxjs 6.3.0
Anything else relevant?
Replace the callback and it work...
const { next, error } = observer;
By:
const onSuccess: PositionCallback = (pos: Position) => {
observer.next(pos);
};
const onError: PositionErrorCallback = (error) => {
observer.error(error);
};
The text was updated successfully, but these errors were encountered: