Skip to content

Commit

Permalink
chore(README): added missing @Injectable decorator to MissingTranslat…
Browse files Browse the repository at this point in the history
…ionHandler example

Pretty much as commit message. The example is missing the @Injectable() decorator.
  • Loading branch information
agustiza authored Jul 22, 2020
1 parent efcb4f4 commit 3d55c27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 3d55c27

Please sign in to comment.