[英]Typescript angular properties doesnt exist on value
So I have this bit of code 所以我有这段代码
As you can see, module
and IStateProvider
are underlined red, saying that 如您所见, module
和IStateProvider
用红色下划线表示,
the property does not exist on value of type 'typeof angular' 该属性在'typeof angular'类型的值上不存在
and 和
the property does not exist on value of type 'typeof angular.ui' 属性类型'typeof angular.ui'的值不存在
What's up with this error? 这是怎么回事?
What editor are your using? 您正在使用什么编辑器? Have you tried adding a reference to the angular.d.ts file? 您是否尝试过添加对angular.d.ts文件的引用?
/// ///
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.