Bird
0
0

If an Angular app uses pre-rendering but a route depends on client-only data, what will happen to that route's static page?

medium📝 Predict Output Q5 of 15
Angular - Server-Side Rendering
If an Angular app uses pre-rendering but a route depends on client-only data, what will happen to that route's static page?
AThe client-only data will be included automatically
BThe static page will be generated without client-only data
CThe route will be skipped and no static page created
DPre-rendering will fail with an error
Step-by-Step Solution
Solution:
  1. Step 1: Understand pre-rendering limitations

    Pre-rendering runs at build time, so client-only data is not available then.
  2. Step 2: Predict static page content

    The page is generated but without client-only data, which loads later on client.
  3. Final Answer:

    The static page will be generated without client-only data -> Option B
  4. Quick Check:

    Client-only data missing in static page [OK]
Quick Trick: Pre-rendered pages lack client-only runtime data [OK]
Common Mistakes:
  • Expecting client data in static HTML
  • Thinking pre-rendering errors on client data
  • Assuming route is skipped if data missing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes