Angularjs   发布时间:2022-04-20  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Angular4我应该使用Iterable的定义大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我已将我的应用程序升级到最新的Angular 4(beta-8)版本.但是我一直有以下错误

我确实查找了更改日志,发现:

我应该在这里使用什么作为Iterable定义?

编辑:

tsconfig.json

"compilerOptions": {
    "target": "es5","module": "commonjs","moduleResolution": "node",/* for reading your ts source while debugging from a browser */
    "sourceMap": true,/* the following two setTings are required for angular2 Annotations to work*/
    "emitDecoratorMetadata": true,"experimentalDecorators":true,/* noImplicitAny when you want your typescript to be fully typed */
    "noImplicitAny":false,"suppressImplicitAnyIndexErrors":true,"nofallthroughCasesInSwitch":true,"noImplicitReturns":true,"outDir": "./target/ts"
  }
在更改日志中声明的 migration后,您应该在tsconfig.json中添加es2015.iterable作为lib:
{
  ...,"compilerOptions" : {
     ...,"lib": ["es6","dom","es2015.iterable"]
   }
}

大佬总结

以上是大佬教程为你收集整理的Angular4我应该使用Iterable的定义全部内容,希望文章能够帮你解决Angular4我应该使用Iterable的定义所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。