2020年4月12日

Angular2中的依赖注入

摘要: 依赖注入:dependency injection,简称DI。 依赖注入是IOC设计模式的一种实现。 依赖注入概念的定义:https://www.cnblogs.com/artech/p/net-core-di-03.html angular中DI的组成包括三部分: ①、提供者(provider): 阅读全文

posted @ 2020-04-12 23:09 康纳酱 阅读(407) 评论(0) 推荐(0) 编辑

TS常见错误提示

摘要: 1、TSLint: Identifier 'injector' is never reassigned; use 'const' instead of 'let'. (prefer-const) 解决方法在tslint.json下添加一个"prefer-const": false, 阅读全文

posted @ 2020-04-12 21:53 康纳酱 阅读(1386) 评论(0) 推荐(0) 编辑

导航