Google Indexa Angular Code when printing Json


When searching for my site in Google this indexes a certain code of angular and shows it in the results

in my index.html I print Json's information in this way

<li><a href="vehiculos.html">{{ common.nav.vehicles }}</a></li>
<li><a href="Empresas.html">{{ common.nav.copanies }}</a></li>
<li><a href="contactos.html">{{ common.nav.contacts }}</a></li>

Sorry for the novice, it's done that way since the site is multi-language.

asked by Robert Hernández 14.11.2018 в 23:27

1 answer


I think the problem is because you are showing the data in uncompressed ( raw, uncompiled ) before they are possibly prepared because you make asynchronous calls to your back-end.

To solve this it is necessary to add the ng-cloak directive in the views you want that do not have this behavior.

Here is an explanation of the directive: ( translation )


The ngCloak directive is used to prevent the browser from displaying   briefly the AngularJS html template in its original form (without   compile) while the application is loading. Use this directive to   Avoid the unwanted flicker effect caused by the display   of the html template.


The directive can be applied to the element, but the preferred use is   apply multiple ngCloak directives to small portions of the page   to allow the progressive representation of the browser view.



answered by 26.11.2018 в 22:54