Skip to main content

Absolute vs Relative Imports

Absolute imports start with @ from the root. Relative imports use the double dot (..) to walk up from the current file.

By default, imports are relative. Absolute imports are easier to read.

Paths Configuration​

To use absolute imports, set the paths field in tsconfig.json.