How to adjust the path of the lazy modules angular 7?

Written in angular application with routing and a large number of lazily loaded modules (when routing)

the application runs on a website running on Bitrix and the application has a dedicated section on the website with a special template.

For those who do not know what it was about, in General terms, the user browses to (or - then connect the first routing Bitrix, and sends the request to the processing on the file and there already it will become the angular routing), then open the file where is the connectivity kernel of Bitrix, etc., Beatrix finds that this section of the site should be used a website template that I specifically made for this application and will included it.
In the end, actually the template files are pulled out of and for module files that are loaded when the application starts no problem, they are loaded from there where I specify to upload, but the rest of the modules, the problem - angular app "sees" base as and, accordingly, will attempt to lazy load the modules

And it is necessary to make somehow that they were loaded from

How to do it?
March 23rd 20 at 19:14
1 answer
March 23rd 20 at 19:16
And --base-href tried to play? I understand that he is able to fix just your situation (when the application is loaded not from the root of the site.
routing while flying into the pipe (it will begin with that place where specifies the base) - eldon.Eichmann commented on March 23rd 20 at 19:19
@eldon.Eichmann and who promised a simple way?) - Martine.Keeling79 commented on March 23rd 20 at 19:22
@Martine.Keeling79, it's not simple and complex ways and that this idiocy is to do the application root folder, which is in the backwoods website. The root must be the root. And way download like that you can change, whether of the configuration of angular, or how to rule the loaders have - eldon.Eichmann commented on March 23rd 20 at 19:25

Find more questions by tags Angular