MCPcopy Create free account
hub / github.com/angular/angular / InnerBlock

Class InnerBlock

packages/platform-server/test/incremental_hydration_spec.ts:3571–3583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3569 let clientInnerInitCount = 0;
3570
3571 @Component({
3572 selector: 'inner-block',
3573 template: `<span class="inner-content">hydrated</span>`,
3574 })
3575 class InnerBlock {
3576 private readonly isServer = isPlatformServer(inject(PLATFORM_ID));
3577
3578 constructor() {
3579 if (!this.isServer) {
3580 clientInnerInitCount++;
3581 }
3582 }
3583 }
3584
3585 async function ssrAndHydrate(component: Type<unknown>) {
3586 const html = await ssr(component, {envProviders, hydrationFeatures});

Callers

nothing calls this directly

Calls 3

ComponentInterface · 0.90
isPlatformServerFunction · 0.90
injectFunction · 0.90

Tested by

no test coverage detected