diff --git a/adev/src/app/features/update/recommendations.ts b/adev/src/app/features/update/recommendations.ts index a198a77cf8e..36286a3c4b1 100644 --- a/adev/src/app/features/update/recommendations.ts +++ b/adev/src/app/features/update/recommendations.ts @@ -208,7 +208,7 @@ export const RECOMMENDATIONS: Step[] = [ level: ApplicationComplexity.Basic, step: 'Http', action: - "If you use the legacy `HttpModule` and the `Http` service, switch to `HttpClientModule` and the `HttpClient` service. HttpClient simplifies the default ergonomics (you don't need to map to JSON anymore) and now supports typed return values and interceptors. Read more on [angular.dev](https://angular.io/guide/http).", + "If you use the legacy `HttpModule` and the `Http` service, switch to `HttpClientModule` and the `HttpClient` service. HttpClient simplifies the default ergonomics (you don't need to map to JSON anymore) and now supports typed return values and interceptors. Read more on [angular.dev](https://angular.dev/guide/http).", }, { possibleIn: 430, diff --git a/packages/forms/src/directives/reactive_errors.ts b/packages/forms/src/directives/reactive_errors.ts index 51f6104f0b4..5b46b2999a1 100644 --- a/packages/forms/src/directives/reactive_errors.ts +++ b/packages/forms/src/directives/reactive_errors.ts @@ -7,7 +7,6 @@ */ import {ɵRuntimeError as RuntimeError} from '@angular/core'; - import {RuntimeErrorCode} from '../errors'; import { @@ -16,6 +15,7 @@ import { formGroupNameExample, ngModelGroupExample, } from './error_examples'; +import {VERSION} from '../version'; export function controlParentException(nameOrIndex: string | number | null): Error { return new RuntimeError( @@ -126,6 +126,8 @@ export const asyncValidatorsDroppedWithOptsWarning = ` `; export function ngModelWarning(directiveName: string): string { + const versionSubDomain = VERSION.major !== '0' ? `v${VERSION.major}.` : ''; + return ` It looks like you're using ngModel on the same form field as ${directiveName}. Support for using the ngModel input property and ngModelChange event with @@ -133,9 +135,9 @@ export function ngModelWarning(directiveName: string): string { in a future version of Angular. For more information on this, see our API docs here: - https://angular.io/api/forms/${ + https://${versionSubDomain}angular.dev/api/forms/${ directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName' - }#use-with-ngmodel + } `; } diff --git a/packages/language-service/src/codefixes/fix_invalid_banana_in_box.ts b/packages/language-service/src/codefixes/fix_invalid_banana_in_box.ts index 2156fda48f5..0f8187c9614 100644 --- a/packages/language-service/src/codefixes/fix_invalid_banana_in_box.ts +++ b/packages/language-service/src/codefixes/fix_invalid_banana_in_box.ts @@ -16,7 +16,7 @@ import {getTypeCheckInfoAtPosition, TypeCheckInfo} from '../utils'; import {CodeActionMeta, FixIdForCodeFixesAll} from './utils'; /** - * fix [invalid banana-in-box](https://angular.io/extended-diagnostics/NG8101) + * fix [invalid banana-in-box](https://angular.dev/extended-diagnostics/NG8101) */ export const fixInvalidBananaInBoxMeta: CodeActionMeta = { errorCodes: [ngErrorCode(ErrorCode.INVALID_BANANA_IN_BOX)], diff --git a/packages/language-service/src/codefixes/fix_missing_required_inputs.ts b/packages/language-service/src/codefixes/fix_missing_required_inputs.ts index 7ff2aae76c5..c4f1cbc3c52 100644 --- a/packages/language-service/src/codefixes/fix_missing_required_inputs.ts +++ b/packages/language-service/src/codefixes/fix_missing_required_inputs.ts @@ -3,7 +3,7 @@ * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license + * found in the LICENSE file at https://angular.dev/license */ import { diff --git a/packages/language-service/src/codefixes/fix_unused_standalone_imports.ts b/packages/language-service/src/codefixes/fix_unused_standalone_imports.ts index a2d04fb3316..4e31d990029 100644 --- a/packages/language-service/src/codefixes/fix_unused_standalone_imports.ts +++ b/packages/language-service/src/codefixes/fix_unused_standalone_imports.ts @@ -13,7 +13,7 @@ import {CodeActionMeta, FixIdForCodeFixesAll} from './utils'; import {findFirstMatchingNode} from '../utils/ts_utils'; /** - * Fix for [unused standalone imports](https://angular.io/extended-diagnostics/NG8113) + * Fix for [unused standalone imports](https://angular.dev/extended-diagnostics/NG8113) */ export const fixUnusedStandaloneImportsMeta: CodeActionMeta = { errorCodes: [ngErrorCode(ErrorCode.UNUSED_STANDALONE_IMPORTS)],