Reputation: 24492
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?
Upvotes: 0
Views: 2231
Reputation: 11
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.
Upvotes: 1
Reputation: 697
This is the argument in Angular Universal:
Optimized for Search Engines: Although Googlebot crawls and renders most dynamic sites, many search engines expect plain HTML
So for google not needed
but for other crawlers you might need.. Angular Univeral
Upvotes: 3
Reputation: 11
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.
Upvotes: 0