Commit f832977b authored by Vincent Horváth's avatar Vincent Horváth

hot fix

parent c1dd455c
......@@ -56,7 +56,7 @@ public class EntityOverwriteGenerator extends AngularGenerator {
} else {
type = jsMapperHelper.get(field.getType().toString());
if (type == null) {
type = field.getType().toString()+"Generate";
type = field.getType().toString();
}
}
......
......@@ -33,15 +33,15 @@ public class InputPreprocessor extends AngularReplacer {
Element inputElement;
if (field.getEditor() == Editor.STRING) {
inputElement = getInputText(field);
inputElement = getInputText(field,model);
} else {
inputElement = getInputText(field);
inputElement = getInputText(field, model);
}
element.replaceWith(inputElement);
}
private Element getInputText(Field field) {
private Element getInputText(Field field,Model model) {
Element element = getElement();
Element inputElement = new Element("div");
......@@ -50,6 +50,7 @@ public class InputPreprocessor extends AngularReplacer {
input.attr("type", "text");
input.attr("name", field.getName());
input.attr("id", field.getName());
input.attr("[(ngModel)]",model.getName().toLowerCase()+"."+ field.getName());
for (Attribute attribute : element.attributes()) {
if (attribute.getKey().startsWith("bfi-")) {
......
{
"VARCHAR": "String"
"varchar":"string",
"text":"string",
"int":"number"
}
\ No newline at end of file
......@@ -8,6 +8,7 @@ import {#className#DataService} from '../../services/data/generate/#className#Da
providers: [#className#DataService]
})
export class #className#Component implements OnInit {
private #selector#: #className#;
constructor(
private #variable#DataService: #className#DataService
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment