From cbd5d28f711e579a63144b60e6178ee327f53451 Mon Sep 17 00:00:00 2001 From: Emilie Huet <36776751+elena-sam@users.noreply.github.com> Date: Tue, 22 Jan 2019 12:14:44 +0100 Subject: [PATCH] docs: add info regarding injecting custom pipes (#28291) Indicate that a pipe also needs to be included in the providers array PR Close #28291 --- aio/content/guide/pipes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aio/content/guide/pipes.md b/aio/content/guide/pipes.md index b24c049a0d..018093c7fc 100644 --- a/aio/content/guide/pipes.md +++ b/aio/content/guide/pipes.md @@ -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`.