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

No provider for Http - ionic2 alpha 42

$
0
0

I made it, it's working now but some functions had to be removed (retry, timeout, delay, map):

  headers.append('Content-Type', 'application/json');
  this.http.post(url, JSON.stringify(json), {headers: headers})
    // .retry(2)
    // .timeout(10000, new Error('Tiempo de espera alcanzado.'))
    // .delay(10)
    // .map((res) => res.json())
    .subscribe(
      (data) => resolve(data.json()),
      (err) => reject(err)
    );

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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