From 3d55c27d370e8355092b04309c6e8713f5d2f8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn?= Date: Tue, 21 Jul 2020 22:05:49 -0300 Subject: [PATCH] chore(README): added missing @Injectable decorator to MissingTranslationHandler example Pretty much as commit message. The example is missing the @Injectable() decorator. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 75b6aa08..4dad46c9 100644 --- a/README.md +++ b/README.md @@ -466,8 +466,10 @@ You can use `useDefaultLang` to decide whether default language string should be Create a Missing Translation Handler ```ts +import {Injectable} from "@angular/core"; import {MissingTranslationHandler, MissingTranslationHandlerParams} from '@ngx-translate/core'; +@Injectable() export class MyMissingTranslationHandler implements MissingTranslationHandler { handle(params: MissingTranslationHandlerParams) { return 'some value';