Ad

AngularJS And Google SEO Indexing

- 1 answer

I am not a specialist in SEO, and some time talking to one told me that Google indexes, which is in the view-source, I wonder if this is really true?

I am developing an application and took Angle and quite advanced, and I remembered and I wonder if this is true or not.

Why? I ask this. Because my code in the view-source looks like this

<article class="uk-article" ng-controller="dataItemHoP">
   <h1 class="uk-article-title"><span>Información</span></h1>
   <h3 class="uk-article-lead"><span>{{nombreHoP}}</span></h3>
   <p><span class="uk-text-bold">Dirección:</span> <br>
      <span>{{direccion}}</span><span>,</span> <span>{{ciudad}}</span><span>,</span> <span>{{estado}}</span></p>
   <p><span class="uk-text-bold">Teléfonos:</span> <br>
   <span>{{telefono1}}</span><span>,</span> <span>{{telefono2}}</span></p>
</article>

While on the console looks like Google

<article class="uk-article ng-scope" ng-controller="dataItemHoP">
   <h1 class="uk-article-title"><span>Información</span></h1>
   <h3 class="uk-article-lead"><span class="ng-binding">Lidodotel Hotel Boutique</span></h3>
   <p><span class="uk-text-bold">Dirección:</span> <br>
   <span class="ng-binding">Centro Comercial Sambil, autopista Antonio Jose de Sucre, sector Las Lomas, edificio Lidotel</span><span>,</span> <span class="ng-binding">San Cristóbal</span><span>,</span> <span class="ng-binding">Táchira</span></p>
   <p><span class="uk-text-bold">Teléfonos:</span> <br>
   <span class="ng-binding">0276 5103333</span><span>,</span> <span class="ng-binding">0276 5103334</span></p>
</article>

¿So, Google doesn't will Indexed because into the view-source is watching the {{ expression }} ?

Ad

Answer

The google indexer is getting much better at handling JavaScript heavy sites that deal with a lot of AJAX actions to bring in content. It is true that the indexer used to only really deal in the textual representation of your site. However that has been updated.

See Understanding Web Pages

In order to solve this problem, we decided to try to understand pages by executing JavaScript. It’s hard to do that at the scale of the current web, but we decided that it’s worth it. We have been gradually improving how we do this for some time. In the past few months, our indexing system has been rendering a substantial number of web pages more like an average user’s browser with JavaScript turned on.

Sometimes things don't go perfectly during rendering, which may negatively impact search results for your site. Here are a few potential issues, and – where possible, – how you can help prevent them from occurring:

As charlietfl pointed out, you should also see Deprecating Our Ajax Crawling Scheme

Times have changed. Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers. To reflect this improvement, we recently updated our technical Webmaster Guidelines to recommend against disallowing Googlebot from crawling your site's CSS or JS files.

Ad
source: stackoverflow.com
Ad