← 输入框|github.com|刷新
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions aio/content/guide/pipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,18 +214,16 @@ 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`.


<div class="callout is-helpful">

<header>
Remember the declarations array
</header>


You must manually register custom pipes.
You must register custom pipes.
If you don't, Angular reports an error.
In the previous example, you didn't list the `DatePipe` because all
Angular built-in pipes are pre-registered.
Angular CLI's generator registers the pipe automatically.


</div>
Expand Down