Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

rxjs of

content_copyopen_in_new
import { of } from 'rxjs';
 
of({name:"asd"})
  .subscribe({
    next: value => console.log('next:', value),
    error: err => console.log('error:', err),
    complete: () => console.log('the end'),
  });
 
// Outputs
// next: 10
// next: 20
// next: 30
// the end
Source by rxjs.dev #
 
PREVIOUS NEXT
Tagged: #rxjs
ADD COMMENT
Topic
Name
9+2 =