MCPcopy Index your code
hub / github.com/angular/angular / hasStateTemplate

Function hasStateTemplate

packages/core/testing/src/defer.ts:75–88  ·  view source on GitHub ↗
(state: DeferBlockState, block: DeferBlockDetails)

Source from the content-addressed store, hash-verified

73}
74
75function hasStateTemplate(state: DeferBlockState, block: DeferBlockDetails) {
76 switch (state) {
77 case DeferBlockState.Placeholder:
78 return block.tDetails.placeholderTmplIndex !== null;
79 case DeferBlockState.Loading:
80 return block.tDetails.loadingTmplIndex !== null;
81 case DeferBlockState.Error:
82 return block.tDetails.errorTmplIndex !== null;
83 case DeferBlockState.Complete:
84 return true;
85 default:
86 return false;
87 }
88}
89
90function getDeferBlockStateNameFromEnum(state: DeferBlockState) {
91 switch (state) {

Callers 1

renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…