style(docs-infra): fix indentation in `rx-library` example (#31553)
PR Close #31553
This commit is contained in:
parent
c529be9f24
commit
edc51f76c4
|
@ -7,9 +7,9 @@ import { from } from 'rxjs';
|
|||
const data = from(fetch('/api/endpoint'));
|
||||
// Subscribe to begin listening for async result
|
||||
data.subscribe({
|
||||
next(response) { console.log(response); },
|
||||
error(err) { console.error('Error: ' + err); },
|
||||
complete() { console.log('Completed'); }
|
||||
next(response) { console.log(response); },
|
||||
error(err) { console.error('Error: ' + err); },
|
||||
complete() { console.log('Completed'); }
|
||||
});
|
||||
|
||||
// #enddocregion promise
|
||||
|
|
Loading…
Reference in New Issue