Creating a loader for each component view is crucial when loading data from an API. Here is the current structure of my components within my
<app-main></app-main>
:
<app-banner></app-banner>
<app-data></app-data>
<app-users></app-users>
Now, I need to implement loaders for each component to show while data is being fetched from the API and hide once the data has been loaded.
The goal is to have individual loaders for banner, data, users
, displaying them before the data is retrieved and hiding them afterwards. How can this be accomplished?