I would like to ask if there is any method to check if component or page is accessed by click on router link or typing direct URL in browser?
Thanks for your help.
EDIT: Sorry for not a very precise question. What I mean is to check the way of getting to component, for example:
1.Navigating on page, ex: /posts/ -> click RouterLink -> /posts/someID
2.Typing /posts/someID in browser's address bar
And I'm looking for method to check which way is used.