Bird
0
0

Which decorator property must be set to true to make a pipe standalone in Angular?

easy📝 Conceptual Q2 of 15
Angular - Standalone Components
Which decorator property must be set to true to make a pipe standalone in Angular?
Astandalone
Bpure
Cexported
DprovidedIn
Step-by-Step Solution
Solution:
  1. Step 1: Identify the decorator property for standalone

    Angular uses the property standalone: true in the @Pipe or @Directive decorator to mark it as standalone.
  2. Step 2: Verify other options

    pure controls pipe purity, exported is not a decorator property, and providedIn is for services.
  3. Final Answer:

    standalone -> Option A
  4. Quick Check:

    Decorator property for standalone = standalone [OK]
Quick Trick: Use standalone: true in decorator to make standalone [OK]
Common Mistakes:
  • Confusing standalone with pure property
  • Using providedIn which is for services
  • Thinking exported is a decorator property

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes