Q. How is a custom pipe created in Angular?

  • (A) By using the `@Pipe` decorator
  • (B) By importing PipeModule
  • (C) By defining a directive
  • (D) By using `@Component`
πŸ’¬ Discuss
βœ… Correct Answer: (A) By using the `@Pipe` decorator
Explanation: Custom pipes are created with `@Pipe` and must implement `PipeTransform`.
Explanation by: Mr. Dubey
Custom pipes are created with `@Pipe` and must implement `PipeTransform`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
101
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate