angular-formio
Version:
Form.io Angular JSON Form Renderer ========================== This library serves as a Dynamic JSON Powered Form rendering library for [Angular](https://angular.io). This works by providing a JSON schema to a ```<formio>``` Angular component, where that f
43 lines (42 loc) • 1.22 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Injectable, EventEmitter } from '@angular/core';
import { FormioAuthService } from '../auth/auth.service';
/**
* @record
*/
export function FormioResourceMap() { }
var FormioResources = /** @class */ (function () {
function FormioResources(auth) {
this.auth = auth;
this.resources = {};
this.error = new EventEmitter();
this.onError = this.error;
this.resources = {
currentUser: {
resourceLoaded: this.auth.userReady
}
};
}
FormioResources.decorators = [
{ type: Injectable },
];
/** @nocollapse */
FormioResources.ctorParameters = function () { return [
{ type: FormioAuthService }
]; };
return FormioResources;
}());
export { FormioResources };
if (false) {
/** @type {?} */
FormioResources.prototype.resources;
/** @type {?} */
FormioResources.prototype.error;
/** @type {?} */
FormioResources.prototype.onError;
/** @type {?} */
FormioResources.prototype.auth;
}