32 lines
776 B
TypeScript
32 lines
776 B
TypeScript
|
import { Component } from '@angular/core';
|
||
|
import { ServerService } from './services/server.service';
|
||
|
import { FieldBase } from '../app/form/fields/field-base';
|
||
|
import { JsonObjest } from '../app/entities/JsonObject.class';
|
||
|
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-root',
|
||
|
template: `
|
||
|
<div>
|
||
|
<dynamic-form></dynamic-form>
|
||
|
</div>
|
||
|
`,
|
||
|
providers: []
|
||
|
})
|
||
|
export class AppComponent {
|
||
|
|
||
|
fields: any[];
|
||
|
|
||
|
//constructor(service: FieldService) {
|
||
|
//this.fields = service.getFields();
|
||
|
// this.serverService.getHTTPFields()
|
||
|
// .subscribe(
|
||
|
// (data:any[])=> {
|
||
|
// console.log(data);
|
||
|
// fieldService.getFieldVisibility(data);
|
||
|
// },
|
||
|
// (error) => console.log(error)
|
||
|
// );
|
||
|
//}
|
||
|
}
|