Skip to content

docs: Add skills for deferrable views and server-side rendering - #69947

Open
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:skills/angular-ssr
Open

docs: Add skills for deferrable views and server-side rendering#69947
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:skills/angular-ssr

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

No description provided.

@pullapprove
pullapprove Bot requested a review from MarkTechson July 25, 2026 22:01
@angular-robot angular-robot Bot added the area: docs Related to the documentation label Jul 25, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jul 25, 2026
Comment thread skills/dev-skills/angular-developer/references/deferrable-views.md
- Put specific paths before the `**` fallback.
- Keep client router paths and server route paths aligned.
- Use `RenderMode.Prerender` only when the required data is available at build time.
- Call `inject()` before the first `await` in `getPrerenderParams`.

@SkyZeroZx SkyZeroZx Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call inject() before the first await in getPrerenderParams.

I added this because of how injection/reactive contexts currently work. We should probably add it to the Injection Context skill to explain it better?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes IMO. I feel like I saw an issue that turned into a docs PR mention about this, so I think any relevant skill could use this note as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll probably move this to another PR with some improvements I could make, along with some things I'd like to add about Angular event binding.

Comment thread skills/dev-skills/angular-developer/SKILL.md Outdated
@SkyZeroZx
SkyZeroZx force-pushed the skills/angular-ssr branch from c7b0b3a to 314db44 Compare July 25, 2026 22:43
Comment thread skills/dev-skills/angular-developer/references/deferrable-views.md Outdated
Comment thread skills/dev-skills/angular-developer/references/deferrable-views.md Outdated
@SkyZeroZx
SkyZeroZx force-pushed the skills/angular-ssr branch from 314db44 to 9acc0cb Compare July 25, 2026 22:53
@@ -0,0 +1,68 @@
# Deferrable Views

Use a `@defer` block for content that that can be lazy loading and is not required for the initial render. Angular splits eligible

@michael-small michael-small Jul 27, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be another word or two to specify that this is template content? As opposed to something like injectAsync for lazy loading services being an adjacent idea but not necessarily related to content rendered in the view.

edit: I know the whole page and file name is about views, but idk, maybe an extra word for good measure for this first block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

Comment thread skills/dev-skills/angular-developer/references/server-side-rendering.md Outdated

@MarkTechson MarkTechson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting there! Thanks for opening this up. I think there's a bit more polish needed but it's on the way.

Comment thread skills/dev-skills/angular-developer/references/deferrable-views.md Outdated
Comment thread skills/dev-skills/angular-developer/references/deferrable-views.md
Comment thread skills/dev-skills/angular-developer/references/deferrable-views.md Outdated
@SkyZeroZx
SkyZeroZx force-pushed the skills/angular-ssr branch from 9d41bac to eb8552f Compare July 29, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants