Angular CLI + Angular.json

Angular.json file

https://angular.io/guide/workspace-config is the official doc of this important file.

Use absolute part for import of ts module

Change the compilerOptions in the tsConfig.json

Use absolute path for @import in scss files

  • In tests :

project > test > options > "stylePreprocessorOptions": { "includePaths": ["path1", "path2"] }

Create an angular project using a specific angular version

npx @angular/cli@7 new Angular7Project

Last updated