Angular2 - Call A Function From Another Standalone Component. Basically, Call Function From Outside Component
I'm loading in a component (Component1) another standalone component(Component2) that contains a form. Imagine you have made a form component and I want to integrate it in my compo
Solution 1:
Without much context, I think you need a service to do this. If there's no relation between those 2 components, why would you call a function from component 2? Put save logic into a service and inject it on whatever component you need it.
Post a Comment for "Angular2 - Call A Function From Another Standalone Component. Basically, Call Function From Outside Component"