web-dave / angular-essentials-workshop

2 stars 0 forks source link

Create a Pipe #14

Open web-dave opened 2 years ago

web-dave commented 2 years ago
web-dave commented 2 years ago
generate ```bash ng g pipe books/pages ```
pages.pipe.ts ```ts transform(value: any, args?: any): any { return `${args}: ${value}`; } ```
book-details.component.html ```html {{book.numPages | pages:'Seitenzahl'}} ```
web-dave commented 2 years ago

Next