Questions tagged as 'angularjs'

3
answers

___ ___ erkimt How the semantic / indexing with AngularJS? ______ qstntxt ___

I always wonder, AngularJS is a framework that is constantly being used.

But I have a question about how it works for crawlers (example googlebot).

Do they even run the javascript and interpret the code to get the information and show the site developed on the platform?

  

With the angular HTML theoretically does not have information "yet", it is first necessary to trigger the controllers and such.

The question is: How does semantics / indexing work with Angular?

    
______ azszpr71758 ___

According to this post , Google's crawler renders pages that have Javascript and browse the listed states.

Interesting parts of the post (free translation):

  

[...] we decided to try to interpret pages by running JavaScript. It's hard to do this on a grand scale, but we decided it was worth it. [...] In recent months, our indexing system has been serving a large number of web pages the way a regular user would see them with JavaScript enabled.

     

If features such as JavaScript or CSS in separate files are blocked (say with %code% ) so that Googlebot can not retrieve them, our indexing system will not be able to see your site as a regular user.

     

We recommend allowing Googlebot to retrieve your JavaScript and CSS so that your content can be better indexed.

Recommendations for Ajax / JS can be found at this link .

If you want to serve Angular application content for crawlers that do not support the same kind of functionality, you need to pre-render the content. Services such as Prerender.io are intended for this.

    
______ azszpr71790 ___

Crawlers (example googlebot) use pure text reading, meaning they first validate meta tags, then comments, then they remove all encoding and then read the whole text without code. Reason: Increase processing speed and reduce errors by having fields that hide, or have nodes (nodules) that are removed during execution. Crawlers do not run any kind of technology (Browser), they only read the file. The Angular does not stop being a Javascript like any other, for that reason its elements are ignored. Only items relevant to SEO (Optimization) are brought into question in their indexing.

Part of my explanation you find in this Google article Understanding Web Pages Better

To better understand the process of viewing plain text, make a requestion of the page in question by CURL, Lynx which are technologies commonly used by Crawlers.

For better indexing we recommend creating robots.txt and XML sitemaps .

    
______ azszpr71766 ___

One tip I can give you is, take the course they offer, it's quick and easy, you'll better understand how semantics work:

link

    
___

I always wonder, AngularJS is a framework that is constantly being used. But I have a question about how it works for crawlers (example googlebot). Do they even run the javascript and interpret the code to get the information and show th...
asked by 29.06.2015 / 14:43
1
answer

Differences between Success and Then AngularJS

So far I've used success to Http Promises . Ex: $http.get(/url).success(function(data){ console.log("Sucesso"); }) .error(function(response, status) { console.log("erro " + status); }); } But today I...
asked by 01.12.2015 / 16:47
3
answers

What is the difference between function () {} and () = {}? Why does not $ http.get work?

When I use $http.get('/products').then((response) => { this.products = response.data; this.allProducts = response.data; }); The page loads with the products in Google Chrome, but when I use $http.get('/products').then(function(...
asked by 29.07.2016 / 16:36
3
answers

How to integrate AngularJS with common scripts?

My question started when I tried to use the twitter bootstrap Carousel within an AngularJS project, it did not work at all. I found the angular-ui , I solved my problem using this component, but my doubts are as follows: 1 - For every c...
asked by 03.12.2014 / 17:35
2
answers

Synchronous requests

I need to make requests, however the first must be GET (getByName) and then execute the rest because they depend on it. It turns out that my code is sending an undefined as the requests depend on the contactsUri that is defined in this...
asked by 23.07.2015 / 18:15
3
answers

Form filling with return of a json

I'm using a webService (viaCep) to automatically fill in the street, for when the user enters a zip code. The webService returns a json with the information of the street, and of that return I fill in the inputs referring (Street, city, etc .....
asked by 03.05.2018 / 17:22
1
answer

What is the difference between KnockoutJS and AngularJS / EmberJS?

What's the difference between KnockoutJS and AngularJS / a href="http://emberjs.com/"> EmberJS ? From what I've been researching: Apparently KnockoutJS has a much smaller learning curve, can be integrated into existing static sites and...
asked by 11.07.2014 / 13:12
5
answers

Update list after push AngularJS

I have a list with several data ( $scope.messages ), but only some data interest me. After loading this list I make a foreach and get only the data that interest me and give push to a new list. This way: angular.forEach($sc...
asked by 19.11.2015 / 20:09
2
answers

What is the difference between angular.extend and angular.merge?

In angular, to extend an object, I usually use 'angular.exted var obj = {nome: "wallace"} angular.extend(obj, {idade: 26}) Result: Object {nome: "wallace", idade: 26} However, I noticed that when using angular.merge , the result...
asked by 10.10.2016 / 14:09
2
answers

Angled POST with customized header and CORS

I need to perform a POST request using angular (http.post) and I need to pass my access credentials (I am using basic authentication) to my API (.NET) in my header.    Authorization : Basic dXNlcm5hbWU6cGFzc3dvcmQ = No angular change the...
asked by 26.10.2015 / 18:17