Whether some applications render Angular on the obtained Beck's page?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
38 views
Loaded the html page rendered on the backend, after uploading I need to render multiple angular components, one in header, one in footer and a couple of pieces within the page, in certain blocks.
All of this must be assembled using AngularCLI, all these applications/components will be in the same bundle.
In the end, the pages will be connected to one and the same bundle, each time after the page is loaded to scan the DOM for units to render them in angular components. For example, the page is loaded, if there is a block there will render a particular angular component, if there is a block in there will render the appropriate component. That is, such compliance to describe.
Thus, for different angular apps on the page will be reused -- common modules and so on (thus no need in each individual application to duplicate them). Also all applications are in one file, so it will have to do a bunch of requests to the server to retrieve this static, so everything is pretty fast to work with.
There are examples or ideas how to implement this?
by | 38 views

1 Answer

0 like 0 dislike
Since Angular 6 is more than possible, but need to solve this question carefully enough
all these applications/components will be in the same bundle.

I would be every application would give your bundle, and used lazy loading
there will render a particular angular component, if there is a block in there will render the appropriate component. That is, such compliance to describe.

boot.browser.ts looking for multiple items, you can create multiple such pieces and implement your logic(what elements, etc.)
Thus in the Angular 6 ivy you can simplify this code and to manage exclusively with components, modules
will reused -- common modules and so on (thus no need in each individual application to duplicate them

This is only a problem if doing a few bundles, then either go to ES6 and its modules or to do 1 for the whole bundle. Or will the code duplication.
by

Related questions

0 like 0 dislike
1 answer
asked May 22, 2019 by vrazrabotchik
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jun 12, 2019 by tehnazavr
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,430 users