M
M
Muxailo2017-10-24 12:56:50
Angular
Muxailo, 2017-10-24 12:56:50

What is the load order of folders in Angular 2/4?

Hello.
Can anyone tell me what is the order in which folders are loaded in Angular?
Is there such a thing that a folder, for example, starts with "_Folder" to load faster than the folder "_Folder2"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Mazhekin, 2017-10-26
@Muxailo

The order in which file folders are loaded depends on which modules they implement. And the modules are loaded like this, if you represent them in the form of a tree, then the branches are loaded first, moving towards the root.
For example, appModule is the root module, two more modules usersModule and ordersModule are connected to it, and for example, sharedModule is connected to usersModule. The load order will be as follows (and their folders, respectively).
1) sharedModule,
2) usersModule,
3) appModule
ordersModule is only enabled by appModule, so it (and its file folders) will be loaded exactly before appModule.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question