Skip to content

Instantly share code, notes, and snippets.

@shaharkazaz
Created October 10, 2019 19:44
Show Gist options
  • Select an option

  • Save shaharkazaz/f54f70585eb09489e4cf65c0a01dbf7d to your computer and use it in GitHub Desktop.

Select an option

Save shaharkazaz/f54f70585eb09489e4cf65c0a01dbf7d to your computer and use it in GitHub Desktop.
const routes: Routes = [
{
path: '',
component: UserProfileComponent
}
];
@NgModule({
declarations: [UserProfileComponent],
providers: [{provide: TRANSLOCO_SCOPE, useValue: 'user-profile'}],
imports: [CommonModule, RouterModule.forChild(routes), TranslocoModule]
})
export class UserProfileModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment