Kesalahan typeerror: by.subject bukan konstruktor
import { Subject } from "rxjs";
Muhammad Mabrouk
import { Subject } from "rxjs";