docs: add info regarding injecting custom pipes (#28291)

Indicate that a pipe also needs to be included in the providers array

PR Close #28291
This commit is contained in:
Emilie Huet 2019-01-22 12:14:44 +01:00 committed by Jason Aden
parent 9f54d76ef5
commit cbd5d28f71
1 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,8 @@ Now you need a component to demonstrate the pipe.
Note the following:
* You use your custom pipe the same way you use built-in pipes.
* You must include your pipe in the `declarations` array of the `AppModule`.
* You must include your pipe in the `declarations` array of the `AppModule`
* If you choose to inject your pipe into a class, you must provide it in the `providers` array of your `NgModule`.
<div class="callout is-helpful">