Skip to content

Commit

Permalink
docs(data): add @Injectable to PluralHttpUrlGenerator (ngrx#2408)
Browse files Browse the repository at this point in the history
  • Loading branch information
rryter authored Feb 23, 2020
1 parent d7ab532 commit 561610e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/ngrx.io/content/guide/data/extension-points.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,15 @@ This example replaces the `DefaultHttpUrlGenerator` with a customized `HttpUrlGe
The implementation simply overrides `DefaultHttpUrlGenerator.getResourceUrls(string, string)`:

```ts
import { Injectable } from '@angular/core';
import {
DefaultHttpUrlGenerator,
HttpResourceUrls,
normalizeRoot,
Pluralizer
} from '@ngrx/data';

@Injectable()
export class PluralHttpUrlGenerator extends DefaultHttpUrlGenerator {
constructor(private pluralizer: Pluralizer) {
super(pluralizer);
Expand Down

0 comments on commit 561610e

Please sign in to comment.