UNPKG

@igo2/core

Version:
37 lines (33 loc) 1.22 kB
import * as i0 from '@angular/core'; import { Injectable } from '@angular/core'; import * as i1 from '@igo2/core/config'; class RegexService { config; options; constructor(config) { this.config = config; this.options = this.config.getConfig('regex'); } getAll() { return this.options; } get(key) { if (this.options) { return this.options[key]; } return; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RegexService, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RegexService, providedIn: 'root' }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RegexService, decorators: [{ type: Injectable, args: [{ providedIn: 'root' }] }], ctorParameters: () => [{ type: i1.ConfigService }] }); /** * Generated bundle index. Do not edit. */ export { RegexService }; //# sourceMappingURL=igo2-core-regex.mjs.map