Sign in
Log inSign up

How to use @angular/http?

Reza Razavipour's photo
Reza Razavipour
·Jan 20, 2017

So I just want to experiment with making http calls from typescript file in my angular2 project.

In the file, I have

import { Http, Response } from '@angular/http';
var httpRequest = Http;

whatever function calls I make using the httpRequest object, I get function not defined. What am I doing wrong?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct