R
R
Roman Rakzin2019-08-19 17:13:55
JavaScript
Roman Rakzin, 2019-08-19 17:13:55

Loading different Angular modules for different users. How to implement?

Is there an option to load different modules for different users while writing one "build" of Angular?
The idea came to write a project where Module_Name for user_1 would look one way, and another way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michail, 2019-08-20
@Michail_04

Make a map where the key is the user id and the value is the module. In the route, load the module from the map. You can dynamically assemble the module, but then you need to know the path to it and the name, you can generally send the module from the back as a file and assemble it and then use the components from there. Read here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question