I didn't understand why I can't get the translation in component ( it works fine in template )
I'm using : Angular 4.4 and I try [email protected] && @8 but it behave like the translation doesn't exist
import { TranslateService } from "@ngx-translate/core";
constructor(private translation: TranslateService) {
this.translation.get("DossierMedicale")
.subscribe(value => {
//returns DossierMedicale but in template it's correct
console.log("aaaa", value);
});
//returns DossierMedicale but in template it's correct
console.log("t2", this.translation.instant("DossierMedicale"));
}