2.將 angularCompilerOptions 新增到 tsconfig.json 檔案中

...
"angularCompilerOptions": {
    "genDir": "./ngfactory"
}
...

這是編譯器的輸出資料夾。