Skip to main content

Pipes: Built-in, Custom, Pure and Impure

Learn Pipes: Built-in, Custom, Pure and Impure (Phase 4 · Directives and Pipes (Core), Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Built-in pipes • A pipe transforms a value for display: {{ value | pipeName: arg1 : arg2 }} . Pipes can be chained. • Common built-ins: date , currency , number , percent , uppercase , lowercase , titlecase , slice , json (debugging), keyvalue , async (subscribes to an Observable/Promise and unsubscribes automatically), i18nPlural . • Import each one used by a standalone component ( DatePipe , CurrencyPipe , AsyncPipe , ...).

More lessons in Phase 4 · Directives and Pipes (Core)