我是NSwag和6/7角组件的新手。如何在Angular Components中使用NSwag角客户端(嵌套树对象)?
使用 NSwag studio ,我从嵌套类C#WebAPI Country -> State -> City Farmer population
使用 Angular CLI 我生成了一个名为CountryFarmers
的角度组件。
在乡村农民中,我有CountryFarmers.Component.ts
import { Component } from "@angular/core";
@Component({
selector: "app-root",
templateUrl: "./CountryFarmers.component.html",
styleUrls: ["./CountryFarmers.component.css"]
})
// I tired to paste the code here, I omitted code for brevity
export class CountryFarmers{
title = "CountryFarmers - NSwag Tes";
}
问题:您能否帮助我理解,我如何或在哪里连接并使用CountryFarmers
组件中的NSwag生成的客户端。