ng-error-message
Version:
Displays error messages when a form control is invalid avoiding the long list of tags for each error
22 lines (21 loc) • 570 B
TypeScript
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
/**
* Abstract class
*/
export declare abstract class NgErrorMessageLoader {
abstract getDictionary(): Observable<any>;
}
/**
* Load the json file
*/
export declare class NgErrorMessageLoaderService implements NgErrorMessageLoader {
private _http;
private _dictURl;
constructor(_http: HttpClient, _dictURl: string);
/**
* Gets the dictionary json file
* @param dictUrl the Url of the errors dictionary
*/
getDictionary(): Observable<any>;
}