Acharya Anilhttps://twitter.com/acharyaks90A Front END Developer( Angular, ReactJs , angularjs, jQuery, javaScript HTML5, CSS3, Bootstrap) and Bharat Swabhiman Social Activist and Yoga Trainer
You just seen how to use Android Secure plugin in a NativeScript Angular Android mobile application. While we were able to get the job done, there are better ways to do this. We can use this for storing login pin and other secure information password , logins etc.
If You have this error in angular request for response type “text”,
Argument of type ‘{ headers: HttpHeaders; responseType: string; }’ is not assignable to parameter of type ‘{ headers?: HttpHeaders | { [header: string]: string | string[]; }; observe?: “bod
y”; params?: Ht…’.
You need to set header from ….
let headers = new HttpHeaders({
‘Content-Type’: ‘application/json’,
‘Authorization’: window.sessionStorage.token
});
let authHttpOptions = {
headers : headers,
responseType: ‘text’
}
this.http.post(url, param, authHttpOptions)
.subscribe(..)
to
this.http.post(url, param, {
headers: new HttpHeaders({‘Content-Type’: ‘application/json’, ‘Authorization’: window.sessionStorage.token}),
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
In this post, I will show you a few tips that will help you become a better React Developer. I will cover a range of things from tooling to actual code style, which can help you improve your skill with React