My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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?