简体   繁体   English

Angular Dart Tutorial第5节 - 'self.injector $ Injector'

[英]Angular Dart Tutorial section 5 - 'self.injector$Injector'

In the Tour of Heroes tutorial, Section 5, main.dart contains the following line: 在Tour of Heroes教程的第5节中, main.dart包含以下行:

final InjectorFactory injector = self.injector$Injector; 最终的InjectorFactory injector = self.injector $ Injector;

Is this a typo? 这是拼写错误吗? It's giving me a warning in VSCode. 它在VSCode中给我一个警告。

I was having the same problem, as it complete with no errors, I just added the following on analysis_options.yaml to ignore the error. 我也有同样的问题,因为它没有任何错误完成,我只是说在analysis_options.yaml以下忽略错误。

analyzer:
  errors:
    undefined_getter: ignore

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM