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

Function getJitStandaloneDefaultForVersion

packages/compiler/src/util.ts:142–150  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

140const V1_TO_21 = /^([1-9]|1[0-9]|2[0-1])\./;
141
142export function getJitStandaloneDefaultForVersion(version: string): boolean {
143 if (V1_TO_18.test(version)) {
144 // Angular v2 - v18 default is false.
145 return false;
146 }
147
148 // All other Angular versions (v19+) default to true.
149 return true;
150}
151
152export function getJitChangeDetectionDefaultForVersion(version: string): ChangeDetectionStrategy {
153 if (V1_TO_21.test(version)) {

Calls 1

testMethod · 0.45

Tested by

no test coverage detected