Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 389
harishkumar329 Avatar asked Sep 08 '17 13:09

harishkumar329


1 Answers

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.

like image 158
Rabbani Avatar answered Oct 18 '22 19:10

Rabbani