You can call your pipe directly in your code using:
YourPipeClass.prototype.transform(value, arg1, arg2);
You can call it from your component or from another source that imports it.
There is also a new
way:
new SortTodosPipe().transform(value, arg1, arg2);
But keep in mind that it will create an object, so either save this object for later use, or use the prototype
method.
In any case, you should add the channel to your providers
if you use it inside the component, for example:
@NgModule({ providers: [YourPipe] })
source share