@Injectable 装饰器出错

来源:3-8 resolve守卫

qq_把握现在_1

2017-05-04

按老师的教学打出来的代码,输入@Injectable装饰器后报错

http://szimg.mukewang.com/590ab5c50001f18d09690571.jpg

 Error:(9, 1) TS1238:Unable to resolve signature of class decorator when called as an expression.
  Supplied parameters do not match any signature of call target. 

写回答

1回答

qq_把握现在_1

提问者

2017-05-04

已解决,少了() 应该是@Injectable()

0
0

Angular4.0从入门到实战 打造股票管理网站

Angular新特性,教你熟练使用 Angular 和 Typescript 开发组件式单页应用

2683 学习 · 1361 问题

查看课程