A
A
Alexander Belov2017-02-21 14:30:17
Angular
Alexander Belov, 2017-02-21 14:30:17

Difference between MEAN 2.0 and Angular Universal?

Never worked with a server part. I recently learned about Angular Universal .
As I understand it, one of its cool features is that it makes NG2 applications "visible" to search engines.
Why not use MEAN 2.0 for these purposes ? We also use the server, you can also render the desired component for the request,
having previously worked out the content for search engines.
What is the difference? Or did I misunderstand the purpose?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2017-02-21
@AMar4enko

Within MEAN, Express.js is only responsible for returning static to the client and processing API requests.
In AngularJS (the so-called first version), there is no way to run it at the time of processing a request from the browser directly to Express.js in order to form the HTML that AngularJS is responsible for and give it to the client.
Since this cannot be done, we sadly wave our handkerchief after the search bots.
Universal allows you to launch an Angular2 application at the time of processing an Express.js request, generate HTML on the server, give this HTML to the client, pick up the Angular2 application on the client and continue working from the state in which the application was after rendering on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question