Under my Angular6 app , i'm using HttpClient with some headers injection to my htpp calls to fetch data from my backend server :  My service :  @Injectable() export class LoadUserInfosService {    public _headers = new HttpHeaders().set('Cont...
I have been sending data to a web api that i flat, but now i am needed more complex json object  In the past... I was doing this ( It works , web api accepts flat model )  MODEL:  export class Menu {     constructor(  ) { }      UserID: number;     A...
I'm making a call using the DomSanitizer like this:          this.domSanitizer.bypassSecurityTrustResourceUrl(url));    The url is complete URL to the SVG image being fetched.  Here's is an example:        this.matIconRegistry.addSvgIcon(...
i have a problem with https://github.com/HackerNews/API.  I need fetch all best news in Angular 7, on 30 news in first page(title, author...). How can i sent get request with next api?  This API show all Id of best story: https://hacker-news.firebase...
I am trying to create a login page in angular and to save the cookie that is being created by our spring boot application  This is how we create the cookie in BE  val cookie = createCookie(jwtProperties.cookieName, token, expirySeconds,...
I have the following code:  // in a service downloadCSV(): Observable<Blob> {   return this.httpClient.get(`${apiUrl}/a.csv`, {responseType: 'blob'}); } // in component onDownloadClicked(event: MouseEvent) {   this.downloading = true;...
I am learning to use Angular 2 and have reached a point here I am stuck with the error below. This only appears since adding the httpClientModule and trying to make a http get request from a components ngInit. The app is using angular 4.3.4.  Can'...
I'm trying to use get information from propublica.org's congress api from an Angular 8 service.   Being new to Http calls to an external web api, I'm struggling with reading the documentation found here: https://projects.propublica.org/ap...
I'm trying to get some data and return something on success using an Angular HttpClient call like this:      return this.http.post('api/my-route', model).subscribe(          data => (             this.data = data;             return $w...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.