How to split one Angular file into client, server and shared files?

The project dotnet-cliscaffolded Angular 4 artefact module is divided into three files: one for the general, the server and client, and is named as such: <modulename>.ts.shared, <modulename>.ts.serverand <modulename>.ts.client, in the main application, de facto, Angular we usually only <modulename>.ts.

I could guess, often correctly, what should go to which file. I had good results by simply looking at the contents of the module as 3 files in the project dotnet-cli.

However, I would prefer to understand the pattern used to determine the contents of each file. Then, indeed, I would really like to know how to start from 3 files from scratch.

+4
source share
1

, . , , , SO.

, 3 .

, MSDN:

, .module , .

( ).

, , .

client server, , . , .

+1

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


All Articles