component refactoring
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Component, inject } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { StationConfigService } from '../services/station-config.service';
|
||||
import { resolveImageUrl } from '../services/app-config.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-download-cta',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
templateUrl: './download-cta.component.html',
|
||||
styleUrl: './download-cta.component.scss',
|
||||
})
|
||||
export class DownloadCtaComponent {
|
||||
readonly config = inject(StationConfigService).config;
|
||||
|
||||
resolveImageUrl(url: string): string {
|
||||
return resolveImageUrl(url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user