I've been working with Angular and using TypeScript. When importing a file in Angular, the syntax usually looks something like this:
import { MyService } from '../../../folder/child-folder/my-service.service';
As I progress with my project, I find myself frequently rearranging folders which requires updating the relative path for all imported files. This can become quite tedious especially when dealing with numerous files.
Is there a way to automatically locate my files regardless of where the importing file is located? Similar to how Angular handles its built-in files with imports like:
import { FormGroup } from '@angular/forms';