I am creating a rxjs Subject inside a angular component and creating a subscription to that Subject in that component itself.
In that case, is the following statement correct
You do not need to unsubscribe the autosearch subscription. That's because the observer that is being subscribed to will be out of scope when that component gets destroyed, so all its subscriptions will be garbage collected automatically