Angular.js, how do I say google to index my site?

I have an angular.js application. I followed the google guide for ajax based applications. I have done this:

  • meta tags

<base href="/"> <meta name="fragment" content="!">

  1. angular.js config

$locationProvider.html5Mode(true); $locationProvider.hashPrefix('!');

  1. My html links look like this (is this wrong?):

<a ng-href="/#!/login">Login</a>

  1. I submitted a sitemap to the Google Search console (x months ago)

I found that I should not use escaped_fragment, is this correct? Am I doing something wrong? It is still not indexed. Google indexed only the home page.

When I run fetch as a Google tool, it displays all pages correctly.

+4
source share
2 answers

, escaped_fragment, ?

, .


:

, JavaScript, CSS Google, . . Javascript CSS robots.txt , .

Google -


, Googlebot ?

URL-? HTML? Google - , .

0

prerender.io, Google .

0

Source: https://habr.com/ru/post/1628087/


All Articles