This is just an advice based question. I really want to make my dashboard fast. So, need help for fetching and sharing local and server based data among parent and child components.
Dashboard features-
1)The data will be one Metadata(json format in assets folder)that will
contain height, width, color, some event based data .
2) The main and important data will come from server for charts and each
component.
3) There are 7 tabs and each has several components like:-
tab-1
It contain 5 component placed over a parent component parent.component.ts by their selector and injecting data through their input property in selector.
tab-2
It contain 8 component placed over a parent component parent.component.ts by their selector and injecting data through their input property in selector.
On the whole, there are components of tab1,tab2, tab3.....on the parent.component.html and router outlet for dashboard is on app.component.html
'
'
'
Data fetching ,sharing Strategy to minimize no. of ajax calls from service
What should be strategy here to fetch data in parent.component.ts and share among all components or any help idea and strategy will be appreciated considering above scenario.
The problem, I am facing is to bring data simultaneously(at once)- like some data is coming from server and its 'color' is coming from 'metadata' in local folder. How to do that?