Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic 2 - Importing from Angular2

$
0
0

@jamespaxi wrote:

Hi all,

feeling a bit dumb dumb :smile:

I've created a new file under www/app/services/test-service.ts

I'm stuck at a very simple line:

import {Http, HTTP_PROVIDERS} from 'angular2/http';

Getting the following error:

cannot compile modules unless the '--module' flag is provided

Any idea what is happening? Thanks folks!

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles