Submitting the server side using Angular cli

I just want to know if Angular2 cli can be run with server rendering similar to Angular2 universal?

The problem is that the scanner cannot read sites with Angular2 cli, and this is important for SEO.

Is it possible to easily add angular universal in angular cli or is it different from conf?

+5
source share
1 answer

Angular-cli can now compile your generated code into generic code.

A detailed guide to preparing angular 2 code for universal assembly can be found here.

As for SEO, angular 4 has a built-in Meta service that is imported from the platform-browser module. If you are looking for a meta service for angular 2, you can try ng2-meta to insert meta tags for SEO.

Great news for developers who have an angular-cli project!

+1
source

Source: https://habr.com/ru/post/1264040/


All Articles