No provider for ConnectionBackend!


#1

Hi,
after install blank ionic base with side menu, I wanted to add translator (ng-x translate). Everything goes well, till I want to use it. In app.component.ts I have:

import {TranslateService} from "@ngx-translate/core";

constructor(translate: TranslateService) {
    translate.setDefaultLang('cz');
    translate.use('cz');
}

I get error from title. If I remove using TranslateServise, everything is fine.

Thanks for advice


#2

Oh sorry, Solved.

I have Http in providers array in app.module.ts. After removing, it works