I find myself constantly importing these two modules in almost every component:
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
Is there a way to import them only once in the global app.component/module for shared use?
I want to optimize my imports for better efficiency as it seems to be impacting the loading time of my app.
Currently, my app takes around 4 seconds to load, and I suspect that the numerous imports are causing this delay. I am looking to reorganize how I handle imports.
I'm open to suggestions on alternative approaches to handling imports efficiently.
My main objective is to reduce my app's loading time to 2 seconds by minimizing the number of imports across all components.