Not sure if the title is clear enough. Feel free to suggest improvements.
I've noticed that the components I'm designing tend to have a bunch of imports. Some of them are duplicated in the importing component. Intuitively, I feel that I'm making it work but sensing code smell.
Suppose we want a monkey to have a banana.
import { Banana } from "./banana";
@Component
export class Monkey { }
Now, some dude wants to own a monkey.
import { Monkey } from "./monkey";
@Component
export class Dude { }
But what if the dude's also hungry and wants a banana for himself too?
import { Monkey } from "./monkey";
import { Banana } from "./banana";
@Component
export class Dude { }
This seems ineffective and redundant to me. The second import appears superfluous since the dude already has a banana through the monkey.
Is it a proper way to declare the import hierarchy in Angular? Or is there a like-a-boss'y way to decrease the scroll payload when looking into the gazillions of imports in each file?
If there isn't a better way, I'd be delighted to see a motivation for this atrocity for a reference mass.