I would like to know if there is any way to autoinject a component in every component of my angular application.
I mean, like a "parent" component which methods can be invoked from other components without needing to use:
import { Parent } ...
I suspect this won't be possible, anyhow, is there another solution to face this problem?
If you are wondering why I need this, is becouse I have to check in every page if an element exists on the local storage.
Thank you!
LocalStorageCheckdoesn't sound like a component.