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
27 lines (25 loc) • 945 B
text/typescript
import { Component, Inject } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import {
FormioResourceIndexComponent,
FormioResourceService,
FormioResourceConfig
} from '../../dist/resource';
/* tslint:disable */
({
template:
require('./event.index.html') +
'<formio-grid [src]="gridSrc" [query]="gridQuery" [onForm]="service.formLoaded" (select)="onSelect($event)" (error)="service.onError($event)"></formio-grid>' +
'<button class="btn btn-primary" *ngIf="service.form" routerLink="new"><span class="glyphicon glyphicon-plus"></span> New {{ service.form.title }}</button>'
})
/* tslint:enable */
export class EventIndexComponent extends FormioResourceIndexComponent {
constructor(
public service: FormioResourceService,
public route: ActivatedRoute,
public router: Router,
public config: FormioResourceConfig
) {
super(service, route, router, config);
}
}