In AngularJS, I am able to use filters (pipes) inside of services and controllers using syntax similar to this:
$filter(\'date\')(myDate, \'yyyy-MM-dd\'); >
If you want to use your custom pipe in your components, you can add
@Injectable({ providedIn: 'root' })
annotation to your custom pipe. Then, you can use it as a service