Angular
"styles": [ "node_modules/ng-zorro-antd/src/ng-zorro-antd.min.css", "src/styles.css" ],providers: [ProductInstanceService, {provide: HTTP_INTERCEPTORS, useClass: HttpInterceptorService, multi: true},]const httpOptions = { headers: new HttpHeaders({'Content-Type': 'application/json'}) };constructor(private http: HttpClient, private errorService: ErrorService) {}private handleError() { return (error: any): Observable<any> => { this.errorService.error(error); return observableThrowError(error); }; }getEndpointDatas(environmentId): Observable<any> { return this.http.get("/hub/owner/" + environmentId).pipe( tap(response => response), catchError(this.handleError()) ); }
{ "/": { "target": "http://localhost:5000", "secure": false, "changeOrigin": true } }ng serve --proxy-config proxy.conf.json
Last updated