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 passing pagination information in response header and unable to get using following method in angular 8. I'm getting 0 all the time but in response showing diffrent value. Can anyone let me know where I made mistake?   app.service.ts...
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...
So this is very hard to explain to me, but I am using httpclient to retrieve information from the backend. I got this json response from them  [{"roomTypes":[{"rooms":[{"boards":[{"cod":"AD","name":"...
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,...
Am trying to use the Angulars HttpClient service to make a request with a number of tries and a delay in between. The code works, but i noticed in the devTools network tap that in the end an extra request is sent and canceled. What am I doing wrong h...
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;...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.