Answer the question
In order to leave comments, you need to log in
How to close a port without iptables on Linux?
Good evening!
Tell me how to completely close one port (namely 443) in Linux without using iptables?
Answer the question
In order to leave comments, you need to log in
my.service.ts
@Injectable({
providedIn: 'root',
})
export class MyService {
public myVar$ = new Subject();
}
export class Comp1Component {
constructor(
public myService: MyService
) {}
}
export class Comp2Component {
constructor(
public myService: MyService
) {}
myFunc(){
this.myService.myVar$.next(1000);
}
}
in short, you need to sit and read about RxJS - https://rxjs-dev.firebaseapp.com/
otherwise you will go so long
with myVar having an Observable type
and then you overwrite it and enter 1000 (number)
according to the correct one: myVar.next (1000)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question