Angular 2: Load different versions of the libraries based on the data

555 views Asked by At

I have a requirement where I need to load different version modules based on the data.

Something like monthly data, if some change happens in my module code for the current month, there shouldn't be any change in the view/logic from the previous month page, the data remains same and so the view as well.

I am planning to create custom libraries for each module with the versions. With this, I can map my data with the module version.

Since my app is big and involves so many modules and versions, I cannot carry all the versions of the module/library to the client with the bundle.

Can someone suggest a better way to handle this requirement?

1

There are 1 answers

0
Rabbani On

Your question is little ambiguous, specifically the title. What I understood you like to load different part of your angular app based to need. You can divide the app in multiple module and load based on your need. You may take a look at this Please clarify if you are looking for something else.