Is it possible use cordova-httpd + ionic2? , how is it?

Hi, am starting with ionic and angular, but i need to start a webserver on my app, i found the cordova-httpd plugin, but i can’t uderstand how to include in my app

import {Xxxxxx} from ‘yyyyy-zzzzz’;

please your help


So in this case, since it’s not part of ionic-native/typescript, you’d have to use the window object

export class MyClass {

Or what ever method you need.

The typescript compiler may complain saying “this does not exist on the window”, but you can ignore it and it will still build.

1 Like

thanks, it’s working…

This is something more people might run in to. Something to put in the docs?