Skip to content

Using Http with map to get json response doesn't seem to work #38

Closed
@eesdil

Description

@eesdil

Trying to use http module from angular2 in nativescript, but I am getting this error:

file:///app/tns_modules/angular2/src/platform/serv
er/parse5_adapter.js:55:75: EXCEPTION: TypeError: _this.http.request(address, options)
                            .map is not a function. (In '_this.http.request(address, options)

This is working in the browser and also including in both places the rxjs map module

import 'rxjs/add/operator/map';

If I remove this from the browser I am getting the same message. But with nativescript even if I add it, it doesnt work...

What can be wrong here? Is there any working example using the http module?

Posted here, but so far no ideas, so adding it here as well

http://stackoverflow.com/questions/34899835/using-map-in-nativescript-with-angular2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions