Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
110 views

Deleting data and navigating to the same page

The HTML Content : <td> <a (click)="onDelete(item.id)"> <i class="material-icons" style="font-weight:bold; font-style:inherit ;color: rgba(247, 37, 37, 0.884);"> ...
gautam siva's user avatar
1 vote
2 answers
2k views

Angular : How to replace hard-coded object with real time api?

OLD Method I'm new in angular. I have hard-coded object in component export class which i'm using for data binding. It's working fine there.now i need to replace same object with real time data....
user3239587's user avatar
0 votes
4 answers
833 views

How to put on hold all other httpclient API request until main API request is finished and resume other hold API request?

I am to loading some main data just after user logged in and in main layout page. There is multiple API request are done for load main data. so i want to put on hold other API request until the main ...
Rajdip Khavad's user avatar
0 votes
2 answers
378 views

Angular 6: how can I set the user and password into a REST API requires basic authentication? [duplicate]

Angular 6: I looking to create an REST API require in GET with a basic authentication. I don't understand how should put my params (user + password). import { Injectable } from '@angular/core'; ...
Giancarlo Nizza's user avatar
-2 votes
1 answer
31 views

Can Web API get input from angular client for confirmation and continue execution?

In our system we allow users to save draft data (draft table) and then user can submit that data for final save (FinalData table) whenever he wants. Now here is the case that multiple user can save ...
Mohini Mhetre's user avatar
1 vote
1 answer
2k views

Set Global Variables in Angular 6 as per the API output

Basically, I need environment.ts file to make an one time call to external API and then I want to set that variable in my global.ts file, which then I will use in various components globally. I can ...
elpidaguy's user avatar
  • 662
-1 votes
1 answer
652 views

How to pass access-token in URL after login

I have created a login page, successfully logged in, and fetched an authorization-key, then stored it into local storage. Now, I want to pass the authorization-key in the URL, not in headers, to all ...
StackUser's user avatar
  • 426
0 votes
1 answer
526 views

Angular 6: Error in displaying images using Json from fetched API

I am trying to fetch image from Pexel API in Angular 6. I am correctly getting the response from API, I can see that in my console.log. I am having difficulty in accessing url of fetched response so ...
Alok Raj's user avatar
  • 508
0 votes
0 answers
2k views

HTTP Get Request for ICan (.ics) file

I'm trying to get a shared calendar from Airbnb into an Angular 6 App. I simply cant get it to work! If I call the URL from 'postman' I have no issues and the values come back. If I enter the URL in ...
Bhail's user avatar
  • 740
2 votes
1 answer
153 views

StaticInjectorError - Populating drop-down lists

Angular v6.1.10 | ASP.Net Core v2.2.102 I am trying to pull up data from my API to populate drop-down lists on my Angular app. I am getting the following error and warning on the console: Warning ...
Gonçalo Peres's user avatar
0 votes
1 answer
66 views

after login dynamic menu API getting CORS error

I am using Angular 6 and codeigniter project.in the project I am using slider and nav menu-bar are dynamically fetching through REST API. Normally its working perfectly after Login its occurring the ...
Muhammed Raheez PC's user avatar
0 votes
3 answers
945 views

value is undefined when passed in component in angular 6

I have a Service that calls an API (Http get request) then I call the service within my component to get the data and then assign it to a value. after that I pass the value in the html to another ...
Mina Mounir's user avatar
0 votes
1 answer
1k views

Handle errors which are coming from back-end API and show them in angular 6 front-end form

I'm working on a signup form and connected with Laravel back-end API. when I insert data of new customer it successfully send request to back-end and redirect to login page. when I give wrong data or ...
Denuka's user avatar
  • 1,242
0 votes
1 answer
1k views

How to show error message in component.ts file?

How to get the error message to my component.ts file? How to access the service class error message to show on HTML page? Component.ts Add method addNew(): any { this.apiService.addIndexReference(...
Kasunjith Bimal's user avatar
0 votes
1 answer
374 views

Fetching and combine data from Api In Angular 6

How to retrieve data from API and For each user id returns his posts with their comments in one JSON object? posts can be fetched from this API: https://jsonplaceholder.typicode.com/posts and their ...
Qusay Saad's user avatar
2 votes
1 answer
726 views

Reuse data from api when i get back same route, angular 6

my home route has 2-3 API, which fetches some data from service through httpClient. when I leave this route and came back again these API calls again. I don't want to request the same data again? Is ...
Mohammad Tanveruzzaman's user avatar
2 votes
3 answers
2k views

How to pass API response as @Input parameter in angular 6 component

I have two components as "new" and "history". history component is called inside "new" component as follows, <div class="col-lg-12"> <app-leave-history [LeaveData]="ldata" [RoleData]="...
Vishwa's user avatar
  • 506
3 votes
1 answer
1k views

You are publicly sharing your App Secret. Do not expose the App Secret in browsers: error while calling getStream API from Angular

I am using GetStream API to get feed data. When I am calling API its gives me an error that You are publicly sharing your App Secret. If I pass it null then it gives me 403 error with message "Missing ...
Ruchita Ajmera's user avatar
1 vote
1 answer
7k views

"Module not found: Error: Can't resolve 'rxjs/add/operator/switchMap'" using LinkedIN API in Angular 6

I am trying to make a simple API call on the LinkedIN API in my Angular application. My API key and all that is perfect. For some reason when my app calls this function I am getting this error: "...
Enesxg's user avatar
  • 127
1 vote
1 answer
479 views

Angular 6 Basic Auth Post Request to .NET Core API

This problem has been posted a bunch of times, but I tried several of the solutions and they are not working for me. I'm making an API service in angular that needs to use basic authentication to get ...
brandoncluff's user avatar
1 vote
2 answers
1k views

How do I return the Resolved Data with the new RXJS 6 pipe/map in Angular 6? [closed]

How do I return the Resolved Data with the new RXJS 6 pipe/map in Angular 6? @Injectable() export class RecentDataResolver implements Resolve<RecentData> { constructor( public data: ...
Adam Halasz's user avatar
  • 58.3k
2 votes
2 answers
12k views

Cannot POST in angular 6

I am getting an uncertain issues with angular 6 while submitting login form. I have setup it all in localhost and i have saved the api files in localhost root and inside the angular project folder ...
kantsverma's user avatar
-1 votes
2 answers
395 views

I am getting Data in Console Using Angular but I can't render it in html

This is my Page-datail.component.ts export class PageDetailComponent implements OnInit { private apiUrl="http://localhost:3000/pages" pages={}; // data={}; constructor(private route:...
Asad Iftikhar's user avatar
1 vote
2 answers
103 views

How to get the right Element out of a REST call

I try to call my REST API, which returns an JSON Object including a session_token. I only need that session_token, but how do I get it? this.http.post(this.tokenURL, this.tokenCall).subscribe(res =&...
Buzzet's user avatar
  • 763
0 votes
1 answer
114 views

API-Call with dynamic URL - Observable undefined

I have an app where I first dynamically load the API-URLs and then make querys to them. If the App is running for a while that is very easy but at startup my API-Calls have to wait to retrieve the ...
NDDT's user avatar
  • 535