220 questions
0
votes
1
answer
386
views
How to read/save HTTP Post response (HTML format) in angular 4
I am trying to read the HTTP Post response in Angular 4. But I cannot able to do. Because the response in HTML format. I searched many sites but I could not found any solution for that.
I can able ...
1
vote
2
answers
541
views
i want to add credentials to window.open(url) in angular6
Code output
i am having this issue in window.open
below is code
repourl:any='http://192.168.1.104/....'
ngOnInit() {
var params = {
Username: 'd2kuser',
Password: '****'};window.open(this....
0
votes
2
answers
3k
views
how to remove authorization Bearer in angular 4 post API call
Need to remove Authorization Bearer in POST Call
Below code didnt remove the authorization bearer which is coming from http interceptors.
Status code: 403 Unauthorized RequestAuthorization header is ...
0
votes
1
answer
1k
views
How to post the Form data using template driven forms using angular 4
I want to post the request payload data on submit the form fields as post API:
Facing issue with the 400 bad request.
How to pass the request payload with the form details?
component.html
<form #...
1
vote
1
answer
56
views
How to pass locale in get service call using angular4
Need to find the locale and pass the same to service(get) call :
Property 'indexOf' does not exist on type '() => string[]'
Heading
in angular4.
//Call Languages
getshortLanguages() {
...
-2
votes
1
answer
562
views
ERR_CONNECTION_TIMED_OUT
enter image description herei have call Post/Get api when running app they show me error ERR_CONNECTION_TIMED_OUT in angular4
0
votes
0
answers
64
views
Called Api Once and used many component in Angular 4?
I have two component Master and MasterDetails and one service name MasterService when first time load master component its working fine but if I navigate to MasterDetails component then I get blank ...
1
vote
0
answers
412
views
Network detection in angular or http client proper error
I have two questions.
angular httpclient get method returns unknown error when I have lost my internet connection.
another question is when I tried navigator.onLine its always returning true.
after ...
1
vote
1
answer
3k
views
Type 'Headers' is not assignable to type 'HttpHeaders | { [header: string]: string | string[]; }'
AuthServiceProvider
postData(credentials, type){
return new Promise((resolve, reject) =>{
let headers = new Headers();
this.http.post(apiUrl+type, JSON.stringify(credentials), {...
-1
votes
1
answer
363
views
How to pass json obj value to API in angular (for post method)
Here i am trying to post some data to API.but it does not work.because i have got 400 bad request.i think my service or typescript is not fine.when trying to postman I got the output.so i confirm my ...
-1
votes
3
answers
110
views
How to pass the headers separatelyin angular4(when passing json object to API not working)
Here I'm trying to catch and save some data to DB (post method)using angular 4.when clicking the confirm button got an error like blocked by CORS policy: Response to preflight request doesn't pass ...
0
votes
1
answer
353
views
Accordion Menu in home page
Create New Ionic 3 and Angular 4 Accordion Menu App
I really wanted to view this Accordion Menu in my home page for my project i tried to edit this code so many time but i wasn't able to did it right....
0
votes
2
answers
502
views
How to call/Get the out parameter from an API to Angular4
Here I am working with a post method on angular 4 web app.When entering data and click the confirm button the values(data) are saved to the db.It works successfully, but my problem is at the same time ...
0
votes
1
answer
195
views
How can we get playstore app version in ionic 3 application?
I have tried so many solutions from google, but no any luck, I didn't get proper solution. How can i get app version from Playstore?
1
vote
1
answer
818
views
Variable value is not visible in intercept method- HTTP Interceptors Angular
I'm trying to pass the variable value in the headers of HTTP request using HTTP Interceptors. But it's not happening
I have tried passing the variable from AppComponent to Service. I can see the ...