📜  未捕获(承诺):NullInjectorError - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:27.650000             🧑  作者: Mango

代码示例1
import { HttpClientModule } from '@angular/common/http';
...
imports: [
        HttpClientModule
    ],

@Injectable({
    providedIn: 'root'
})