In my chat application I want to mark the messages with a "is read" flag. But only if the component is alive (means between init and destroy) doesn't really mean that the user has seen it. Since he could be browsing in another tab or minimized the window etc.
So is there any common way to detect if a specific component in angular is displayed on the screen and focused?