skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
  3. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search