📜  禁用严格模式 Angular - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:33.711000             🧑  作者: Mango

代码示例1
//Following Angular doc, the strict mode can be 
//disabled turning off these flags on tsconfig.json file:

   "forceConsistentCasingInFileNames": false,
   "strict": false,
   "noImplicitReturns": false,
   "noFallthroughCasesInSwitch": false,
   ...
   "angularCompilerOptions": {
      "strictInjectionParameters": false,
      "strictInputAccessModifiers": false,
      "strictTemplates": false
   }