import { HttpClient } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; import { firstValueFrom } from 'rxjs' ; @ Injectable ( { providedIn : 'root' } ) export class LegalService { constructor ( private readonly http ) { } param url getContentFromFromUrl ( url ) { return firstValueFrom ( this . http . get ( url ) ) ; } }