Created
March 7, 2022 19:42
-
-
Save ppowstanski/1f33b89a2fed33906237cc80eaf29e5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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