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?