I have component A with all functionalities and same needs to be used in component B. Since huge code is written in componentA.ts but not in service so in this case how can make use component A logic without using service where both are independent components.
I saw many post in stack overflow but could not find proper solution.
There is a few approaches to achieve your goal: