import {Component} from '@angular/core'; //---------------------------------- // Component for {{name}} // created with Magic code generator //---------------------------------- @Component ({ selector: '{{name}}-form', styleUrls: [ './form.component.css' ], template: `

{{name}}


{{#each model}} {{#xif "this.type == Boolean"}}
{{/xif}} {{#xif "this.type == String || this.type == Number"}}
{{#xif "this.enum == null"}}
{{/xif}} {{#xif "this.enum != null"}}
{{/xif}}
{{/xif}} {{/each}}
` }) export class {{name}}Form { {{#each model}} {{@key}}:"data"; {{/each}} value: any; constructor() { } logForm(value: any) { console.log(value); } }