December 2017
Beginner
372 pages
10h 32m
English
Before we can use the pipe function we need to add the class to our module so that Angular can identify and load the pipe function and its dependency.
To do that we just need to add the dependency in our app.module file as follows:
import {CustomSort } from './shared/custom-sort.pipe'declarations: [ AppComponent, HomepageComponent, … CustomSort]
And that's it, now Angular knows about the pipe and loads it when it loads other components.
Read now
Unlock full access