Last updated 5 years ago
Was this helpful?
( )
// RxJS v6+ import { Subject } from 'rxjs'; const sub = new Subject(); sub.next(1); sub.subscribe(console.log); sub.next(2); // 결과 => 2 sub.subscribe(console.log); sub.next(3); // 결과 => 3,3 (양쪽의 subscribers로부터 로그가 찍힌다)
📰 - 공식 문서
📂 Source Code: