Creating a dataservice to communicate between c# api and frontend (angular)
问题 I need some help with this. I'm supposed to create a plugin for a webpage in angular that communicates with an API written in C# which is already in a .dll. What is the best approach to this? I already created a data.service.ts with the following code to get data from the api: import { Injectable, ValueProvider } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class DataService { edge : any = require('edge'); constructor() { } getData(type: String, method: String) { var data