Assuming I have Angular 2 App, routing with RouterLink, Google can read it as a follow link and index it?
In other words: Can google bot recognize the routerlinks normally as links?
Assuming I have Angular 2 App, routing with RouterLink, Google can read it as a follow link and index it?
In other words: Can google bot recognize the routerlinks normally as links?
3
Answers
It cannot, but you should take a look at Angular Universal. With it, you can pre-render your app on the server side and Google is able to understand it.
This is the argument in Angular Universal:
So for google not needed
but for other crawlers you might need.. Angular Univeral
According to Google documentation googlebot can’t navigate through pages using routerLink.
You can try and add both attributes – href and routerLink. In my tests the interactivity for the user didn’t change and it still worked like a single page application. I think googlebot should be able to follow the link thanks to href attribute and ignore routerLink, but I didn’t test it yet.