Skip to content

Instantly share code, notes, and snippets.

@ppowstanski
Created March 7, 2022 19:42
Show Gist options
  • Select an option

  • Save ppowstanski/1f33b89a2fed33906237cc80eaf29e5a to your computer and use it in GitHub Desktop.

Select an option

Save ppowstanski/1f33b89a2fed33906237cc80eaf29e5a to your computer and use it in GitHub Desktop.
@NgModule({
declarations: [
FeatureOneComponent
],
imports: [
CommonModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (httpClient: HttpClient) =>
return new TranslationLoaderService(httpClient, 'feature-one'),
deps: [HttpClient]
},
isolate: true
}),
RouterModule.forChild([
{
path: '',
component: FeatureOneComponent
}
])
]
})
export class FeatureOneModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment