N
N
Nikita Gushchin2014-06-07 16:18:09
Angular
Nikita Gushchin, 2014-06-07 16:18:09

Site indexing when using AngularJS?

Hello. I am developing a website and the client side is powered by AngularJS. Accordingly, all content, links, etc. appear on the page using JS.
How to deal with search engines in this case? If I create a sitemap file that contains links to special pages where there will be only content (in html), will this work?
In other words: the entire site is opened via index.html, the data is taken in JSON format from the API. And for search engines, I will make pages, for example, news.php - where all the news will be wrapped in HTML according to all SEO rules (but without styles, JS, etc.) and I will indicate these pages in the sitemap. Will the bot find them? It is legal?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maxaon, 2014-06-08
@iNikNik

If your site is built entirely on Angular, then you need to render pages for the web crawler.
As they said, read Google's recommendations and you can look towards SaaS https://prerender.io/ (there is also offline)

L
lega, 2014-06-08
@lega

I tried different options, the most convenient was sitemap + phantomjs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question