Angular Dart教程第5部分-'self.injector $ Injector' [英] Angular Dart Tutorial section 5 - 'self.injector$Injector'

查看:53
本文介绍了Angular Dart教程第5部分-'self.injector $ Injector'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在《英雄之旅》教程的第5节中, main.dart 包含以下行:

In the Tour of Heroes tutorial, Section 5, main.dart contains the following line:


final InjectorFactory喷射器= self.injector $ Injector;

final InjectorFactory injector = self.injector$Injector;

这是错字吗?

推荐答案

我遇到了同样的问题,因为它没有错误,我刚刚添加了在 analysis_options.yaml 上执行以下操作以忽略该错误。

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.

analyzer:
  errors:
    undefined_getter: ignore

这篇关于Angular Dart教程第5部分-'self.injector $ Injector'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆