M
M
Maxim Timofeev2016-12-21 15:03:59
Yii
Maxim Timofeev, 2016-12-21 15:03:59

Yii2 + Angular2 - node.js?

I am practically new to node.js and know yii2 very well. For development purposes, I want to delve into Angular2. Idea to link it to yii2, but I can't understand the following:
everywhere, in docks, guides, etc. it is written about a bunch of Angular2 + node.js, but the following is written in "features" on the project website:


Universal
Serve the first view of your application on node.js, .NET, PHP, and other servers for near-instant rendering in just HTML and CSS. Also paves the way for sites that optimize for SEO.

The question is where are the PHP + Angular2 docks, why is everything through node.js everywhere? Is it possible to do without it and how?
If there are links - let's.
If I'm stupid - please indicate where, why and what to read.
Any info is welcome.
PS: 1st version of Angular found a million articles, guides and ready-made solutions. But it is necessary for the 2nd.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-12-21
@webinar

I figured it out myself, correct me if not.
The structure is as follows:
Angular2 + node.js implement the face
yii2 implements the rest api
, and node.js is needed only for building Angular2, in fact, you can have node.js + angular on the local and only the assembled project can be uploaded to the server. What is nice with shared hosting without a command line. I'm going to try, if I'm still a fool - shout louder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question