Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229599

AJAX Call ANGULAR 5

$
0
0

Hi @nbenakis

Angular5 is entirely different from Angular1 . You don’t have to make ajax. Use Angulars HttpClient.

You can do this

data = yours json data;
this.http.post('url', data)
    .map(res => res.json())
    .subscribe(res => {
         console.log(res);
    }, err => {});

Viewing all articles
Browse latest Browse all 229599

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>