angular http get status code
import { HttpClient, HttpHeaders, HttpParams, } from '@angular/common/http';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
sendMsz(obj):Observable<any> {
return this.http.get(this.urlSer.url,{responseType:'text', params:params, observe: 'response'}).pipe(map(data => {
console.log("Here will be return response code Ex :200", data.status)
return data.status
}));
}
Also in JavaScript:
- discord js bot embed user profile picture
- removed spaces in string js
- javascript get classlist of element
- js go to page
- disable specific input field on page load jquery
- js strings
- square brackets vs curly brackets javascript
- class component react
- javascript program to find leap years between two years
- react map array limit
- Difference in push and navigate in react Navigation
- split whitespace except in quotes javascript
- string json to object c#
- react event stop propagation
- dynamic loaded content can't find library jqury
- number to array javascript
- new date parameters javascript
- duplicate encoder
- npm md to html
- how to add dropdown with filter in angular material
- android center text react native
- js window resize listener
- angular 7 folder structure best practices
- how to iterate through a js object