To create a custom pipe in Angular, you need to decorate a class with the _____ decorator.
- @Component
- @Injectable
- @NgModule
- @Pipe
To create a custom pipe in Angular, you need to decorate a class with the @Pipe decorator. This decorator is used to define a custom pipe.
Loading...
Related Quiz
- You're building a type-ahead search feature in an Angular application. The user input should trigger API calls, but you want to avoid making unnecessary calls for every keystroke. Which RxJS operators can help optimize this?
- What does the async pipe do in an Angular template?
- To implement lazy loading in Angular, you need to use the loadChildren property in your _______.
- You have a large suite of Jasmine tests. Some of them take a long time to execute and are causing your development workflow to slow down. What can you do to speed up the test execution process without compromising code quality?
- What does the ChangeDetectionStrategy.OnPush strategy signify in an Angular component?