ng-sm / title

Angular - page title module based on ngx-translate
2 stars 1 forks source link

NullInjectorError: No provider for TranslateService! #1

Open MalekDammak opened 4 years ago

MalekDammak commented 4 years ago

I'm submitting a ... (check one with "x")

Current behavior I followed the installation and usage steps for ngx-translate but I get this error :

Error: No provider for TranslateService!

AppRoutingModule export const routes: Routes = [ { path: '', redirectTo: 'dashboard', pathMatch: 'full', }, { path: '404', component: P404Component, data: { title: 'title.404PAGE' } }] AppRoutingModule imports: [ RouterModule.forRoot(routes) ,TranslateModule.forRoot(), TitleModule]

sebastianmusial commented 4 years ago

@MelekDamak Thanks! I will try to fix it soon. Oops... I tested it before only with @ngsm/i18n where is this service.

sebastianmusial commented 4 years ago

@MelekDamak I pushed a new version please check it now.

grzegorzbernat commented 4 years ago

I have the same problem.

MalekDammak commented 4 years ago

@MelekDamak I pushed a new version please check it now.

same.