(version: string)
| 140 | const V1_TO_21 = /^([1-9]|1[0-9]|2[0-1])\./; |
| 141 | |
| 142 | export 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 | |
| 152 | export function getJitChangeDetectionDefaultForVersion(version: string): ChangeDetectionStrategy { |
| 153 | if (V1_TO_21.test(version)) { |
no test coverage detected