Asymmetrik/ngx-starter

View on GitHub
src/app/core/help/getting-started/getting-started-help.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
F
30%
import { Component, computed, inject } from '@angular/core';

import { APP_CONFIG } from '../../tokens';
import { ExternalLinksComponent } from './external-links.component';

@Component({
    templateUrl: './getting-started-help.component.html',
    standalone: true,
    imports: [ExternalLinksComponent]
})
export class GettingStartedHelpComponent {
    readonly #config = inject(APP_CONFIG);

    readonly appName = computed(() => this.#config()?.app?.title ?? 'Application');
    readonly externalLinks = computed(() => this.#config()?.help.welcomeLinks ?? []);
}