@rangertechnologies/ngnxt
Version:
This library was used for creating dymanic UI based on the input JSON/data
55 lines (54 loc) • 1.47 kB
TypeScript
import * as i0 from "@angular/core";
export interface CountryData {
countryName: string;
officialName: string;
isoAlpha2: string;
isoAlpha3: string;
isoNumeric: string;
capital: string[];
capitalPrimary: string;
coordinates: {
latitude: number;
longitude: number;
latLng: number[];
};
areaSqKm: number;
continent: string;
region: string;
subregion: string;
population: number;
languages: {
[key: string]: string;
};
languagesName: string[];
languageCode: string[];
primaryLanguage: string;
primaryLanguageCode: string;
currencies: {
[key: string]: any;
};
currencyCode: string;
currencyName: string;
currencySymbol: string;
phoneCodeFull: string;
flag: string;
flagPng: string;
flagSvg: string;
timezones: string[];
borders: string[];
[key: string]: any;
}
export declare class CountryService {
private countriesData;
currentCurrencyOption: any;
private currentCurrencyOptionSubject;
currentCurrencyOption$: import("rxjs").Observable<any[]>;
constructor();
private transformData;
currentCurrency(option: any): void;
currencyCodeSet(code: any): void;
getCurrentCurrency(): any;
getCountryData(fields: (keyof CountryData)[]): any[];
static ɵfac: i0.ɵɵFactoryDeclaration<CountryService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CountryService>;
}