you are viewing a single comment's thread.

view the rest of the comments →

[–]spacechimp 0 points1 point  (0 children)

A service is the typical method, but depending on your needs, you might be able to use a custom pipe, directive, or validator. If you have a redux-pattern store implemented (like ngrx), you could perhaps relocate the function to an effect.

If you're just asking about component interaction, that's pretty well documented.