摘要: 1、ng g s testService 2、服务必须有提供商,才可以外部使用 @Injectable({ providedIn: 'root' }) 如果只写了@Injectable(),则外部是不可以使用的 3、注册提供商的三种方式 通过@Injectable 的providedIn:'root 阅读全文
posted @ 2021-04-27 19:17 jahoon 阅读(90) 评论(0) 推荐(0)
摘要: 在app.module.ts中引入HttpClientModule(HttpClient的服务提供者),以便全局注册 Angular 的 HttpClient。 import { HttpClientModule } from '@angular/common/http'; @NgModule({ 阅读全文
posted @ 2021-04-27 18:14 jahoon 阅读(456) 评论(0) 推荐(0)
摘要: 1、Axure教程 https://docs.axure.com/axure-rp/reference/activating-rp/ 阅读全文
posted @ 2021-04-27 10:22 jahoon 阅读(41) 评论(0) 推荐(0)