在JDL Jhipster中添加用于角度项目的功能

问题描述

例如,我想添加诸如onChange,focosout,onblur,onClick之类的功能,并在jdl中传递额外的参数作为

entity Student {
    studentId Integer,studentRegNum String maxlength(50) (onChange)="SomeChangeAction()",firstName String maxlength(50),}

输出应该类似于
HTML

<input type="text" class="form-control" name="firstName" (onChange)="SomeChangeAction()"
                            id="field_firstName" formControlName="firstName"   />

** TS文件**

SomeChangeAction() {
}

是否可以这样添加

解决方法

不,这是不可能的,您必须自己手动编码