Questions tagged [angular2-pipe]

A function in Angular 2 receives data as an input and then converts it to a specific output.

Angular: DatePipe's output for month is unexpectedly returning as 0

I am currently utilizing DatePipe in order to convert a date string from the format '25-Oct-2017' to '2017-10-25'. Here is the code snippet I am using: this.datePipe.transform('25-Oct-2017', 'yyyy-mm-dd') However, ...

angular2 utilize rxjs to search for threads based on user input

Hey there! I'm working on creating a mini forum inspired by stackoverflow and I'm currently in the process of adding a basic text filter for thread titles. I've recently delved into rxjs and pipes, and this is what I've come up with so ...

Explore an asynchronous PipeTransform experiment

Situation I have created a simple PipeTransform with an asynchronous twist. Why? Well, I have developed my own i18n service to handle parsing, pluralization, and other complexities, which returns a Promise<string>: @Pipe({ name: "i18n", pur ...

Troubleshooting ngFor Template Error when Using a Pipe with Parameters

Currently, I am attempting to utilize a pipe for sorting in Angular 4. The issue lies with the combination of the pipe and ngFor. <div *ngFor="let item of data | paginate: { itemsPerPage: 8, currentPage: p } | orderBy : ['{{config}}'] " c ...