SEO Advice for Angular JS
-
We are changing our homepage (and gradually the rest of the site) to Angular JS.
In order not to lose anything in terms of SEO we are implementing Hashbangs + escaped fragment snapshots.Are there any other SEO considerations you think we should have and/or additional elements that we could add to the page to improve it in terms of SEO?
-
Check my answer to a similar question: http://moz.com/community/q/angular-seo
I am a big advocate of Angularjs, it's a great framework and I use it in every project. I always put SEO on top of my priority list when starting a new project and I never use hashbangs.
In my opinion hashbangs are fundamentally wrong, an old hack born when pushstate was not available.
The only case where Hashbangs make sense is for old complex application/javascript website developed without thinking about SEO, when you evaluate to modernize the app is too complex and not worth it.
You can happily use angularjs and benefit from its routing api without messing around with hashbangs.
-
Hi Sara
Try to avoid hashbangs in the URL - it's much better to declare the escaped fragment in the meta header () and use the $location service in Angular to present the URLs in the browser as full, and hashbang-less!
I've written about this topic extensively, the best thing I could suggest you did was take a look at this blog post: http://builtvisible.com/javascript-framework-seo/
In particular take note of the suggestion of why not to use #! in the URL and a comment around your testing approach, too.
Hope this helps!
Richard
-
thanks! very helpful!