Generic type Subject<T> requires 1 type argument(s). - Angular
Add a generic type for subject
private ngUnsubscribe: Subject<any> = new Subject();
The Subject
class has a generic type parameter in TypeScript. This means, that instances of this class can only be created by passing an additional type parameter, like this:
private ngUnsubscribe: Subject<MyClass> = new Subject();