diff --git a/adev/shared-docs/pipeline/shared/marked/transformations/heading.mts b/adev/shared-docs/pipeline/shared/marked/transformations/heading.mts index b58f207e99a..e8655b0cca1 100644 --- a/adev/shared-docs/pipeline/shared/marked/transformations/heading.mts +++ b/adev/shared-docs/pipeline/shared/marked/transformations/heading.mts @@ -51,7 +51,7 @@ export function formatHeading( // TODO(josephperrott): Set edit content url based on the owner, repo and branch. -/** The base url for edting the a file in the repository. */ +/** The base url for editing the a file in the repository. */ const GITHUB_EDIT_CONTENT_URL = 'https://github.com/angular/angular/edit/main'; /** Get the page title with edit button to modify the page source. */ diff --git a/adev/src/app/app.component.ts b/adev/src/app/app.component.ts index aac8f5e621c..d1a5618d66e 100644 --- a/adev/src/app/app.component.ts +++ b/adev/src/app/app.component.ts @@ -57,9 +57,9 @@ export class AppComponent { protected isBrowser = isPlatformBrowser(inject(PLATFORM_ID)); - protected displaySecondaryNav = signal(false); - protected displayFooter = signal(false); - protected displaySearchDialog = inject(IS_SEARCH_DIALOG_OPEN); + protected readonly displaySecondaryNav = signal(false); + protected readonly displayFooter = signal(false); + protected readonly displaySearchDialog = inject(IS_SEARCH_DIALOG_OPEN); constructor() { this.closeSearchDialogOnNavigationSkipped(); diff --git a/adev/src/app/main.component.ts b/adev/src/app/main.component.ts index 03b3b36b3d2..44f1bddbce9 100644 --- a/adev/src/app/main.component.ts +++ b/adev/src/app/main.component.ts @@ -11,7 +11,6 @@ import {IS_SEARCH_DIALOG_OPEN, Search} from '@angular/docs'; import {RouterOutlet} from '@angular/router'; @Component({ - standalone: true, selector: 'adev-main', imports: [RouterOutlet], template: ``, @@ -19,7 +18,7 @@ import {RouterOutlet} from '@angular/router'; export default class MainComponent { private readonly displaySearchDialog: WritableSignal = inject(IS_SEARCH_DIALOG_OPEN); private readonly searchService = inject(Search); - search = model(''); + readonly search = model(''); constructor() { effect(() => { diff --git a/adev/src/content/guide/http/testing.md b/adev/src/content/guide/http/testing.md index 20fc8cfac09..1942ebdfa9c 100644 --- a/adev/src/content/guide/http/testing.md +++ b/adev/src/content/guide/http/testing.md @@ -43,7 +43,7 @@ const httpTesting = TestBed.inject(HttpTestingController); // Load `ConfigService` and request the current configuration. const service = TestBed.inject(ConfigService); -const config$ = this.configService.getConfig(); +const config$ = service.getConfig(); // `firstValueFrom` subscribes to the `Observable`, which makes the HTTP request, // and creates a `Promise` of the response. diff --git a/devtools/projects/ng-devtools/src/lib/shared/split/split.component.ts b/devtools/projects/ng-devtools/src/lib/shared/split/split.component.ts index 764e5c0d86a..f74a91b2755 100644 --- a/devtools/projects/ng-devtools/src/lib/shared/split/split.component.ts +++ b/devtools/projects/ng-devtools/src/lib/shared/split/split.component.ts @@ -89,7 +89,7 @@ import { changeDetection: ChangeDetectionStrategy.OnPush, styleUrls: [`./split.component.scss`], template: ` - @for (_ of displayedAreas; track $index) { + @for (_ of displayedAreas; track $index) { @if ($last === false) {
- } + } }`, host: { '[class.as-disabled]': 'disabled()',