Skip to content

Commit 42ecef8

Browse files
authored
Merge pull request #1234 from agustiza/readme-missing-injectable
chore(README): missing @Injectable in MissingTranslationHandler example
2 parents 6259081 + 3d55c27 commit 42ecef8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,10 @@ You can use `useDefaultLang` to decide whether default language string should be
495495
Create a Missing Translation Handler
496496
497497
```ts
498+
import {Injectable} from "@angular/core";
498499
import {MissingTranslationHandler, MissingTranslationHandlerParams} from '@ngx-translate/core';
499500

501+
@Injectable()
500502
export class MyMissingTranslationHandler implements MissingTranslationHandler {
501503
handle(params: MissingTranslationHandlerParams) {
502504
return 'some value';

0 commit comments

Comments
 (0)