docs: update angular.io links to angular.dev in comments, TSDoc, and warnings

(cherry picked from commit b2f417585a)
This commit is contained in:
SkyZeroZx 2026-01-02 15:29:57 -05:00 committed by kirjs
parent 41cd4a6af8
commit 8aa77557f1
5 changed files with 9 additions and 7 deletions

View file

@ -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,

View file

@ -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
}
`;
}

View file

@ -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)],

View file

@ -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 {

View file

@ -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)],