I'm trying to implement an Angular 2 app without TypeScript and I'm stuck in how to bootstrap it (can find any example).
My app (without the bootstrap()) starts with:
export class MyApp {
static get parameters() {
return [[Http], [Platform], [IonicApp]];
}
constructor(http, platform, app) {
}
}
this works ok. But, let's say, I have a CustomService. How would I do to inject it to MyApp?
I tried with:
bootstrap(myApp, [SomeCustomService]);
but the console logs: EXCEPTION: No provider for Http! (MyApp -> Http)
I'm I missing something? Did I understood worng some concepts?