Enhancing SEO capabilities
SEO is the process of optimizing a website to be correctly indexed from a web crawler. A web crawler is a special-purpose software that is present on most search engines and can identify and index websites so that they are easily discoverable and linkable through their platforms.
Angular Universal does a great job of SEO by prerendering content during build time. Some web crawlers cannot execute JavaScript and build the dynamic content of an Angular application. Prerendering with Angular Universal eliminates the need for JavaScript, thus allowing web crawlers to do their best to identify the web application.
We can also help SEO by defining several tags in the head
element of the main index.html
file of an Angular application, such as title
, viewport
, and charset
:
index.html
<!doctype html> <html lang="en"> <head> Â Â <meta charset="utf-8"> Â Â <title>GhPortfolio</title> ...