Commit 348fc83e authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

trying to fix a strange instantiation / reference bug

parent fc09a656
...@@ -51,23 +51,23 @@ ...@@ -51,23 +51,23 @@
<ion-title>{{ 'EXERCISE_FEEDBACK' | translate }}</ion-title> <ion-title>{{ 'EXERCISE_FEEDBACK' | translate }}</ion-title>
<ion-item> <ion-item>
<ion-label>{{ 'EXERCISE_FEEDBACK_GENERAL' | translate }}</ion-label> <ion-label>{{ 'EXERCISE_FEEDBACK_GENERAL' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.general" name="feedbackGeneral"></ion-textarea> <ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.general"
<!--placeholder="{{ 'EXERCISE_FEEDBACK_GENERAL_DEFAULT' | translate }}"--> name="feedbackGeneral"></ion-textarea>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label>{{ 'EXERCISE_FEEDBACK_CORRECT' | translate }}</ion-label> <ion-label>{{ 'EXERCISE_FEEDBACK_CORRECT' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.correct" name="feedbackCorrect" <ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.correct"
placeholder="{{ 'EXERCISE_FEEDBACK_CORRECT_DEFAULT' | translate }}"></ion-textarea> name="feedbackCorrect"></ion-textarea>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label>{{ 'EXERCISE_FEEDBACK_PARTIALLY_CORRECT' | translate }}</ion-label> <ion-label>{{ 'EXERCISE_FEEDBACK_PARTIALLY_CORRECT' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.partiallyCorrect" name="feedbackPartiallyCorrect" <ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.partiallyCorrect"
placeholder="{{ 'EXERCISE_FEEDBACK_PARTIALLY_CORRECT_DEFAULT' | translate }}"></ion-textarea> name="feedbackPartiallyCorrect"></ion-textarea>
</ion-item> </ion-item>
<ion-item> <ion-item>
<ion-label>{{ 'EXERCISE_FEEDBACK_INCORRECT' | translate }}</ion-label> <ion-label>{{ 'EXERCISE_FEEDBACK_INCORRECT' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.incorrect" name="feedbackIncorrect" <ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.incorrect"
placeholder="{{ 'EXERCISE_FEEDBACK_INCORRECT_DEFAULT' | translate }}"></ion-textarea> name="feedbackIncorrect"></ion-textarea>
</ion-item> </ion-item>
</ion-list> </ion-list>
</ion-list> </ion-list>
......
...@@ -6,7 +6,6 @@ import {QueryMC} from "../../models/queryMC"; ...@@ -6,7 +6,6 @@ import {QueryMC} from "../../models/queryMC";
import {AnnisResponse} from "../../models/annisResponse"; import {AnnisResponse} from "../../models/annisResponse";
import {TranslateService} from "@ngx-translate/core"; import {TranslateService} from "@ngx-translate/core";
import {Feedback} from "../../models/feedback"; import {Feedback} from "../../models/feedback";
import {NodeMC} from "../../models/nodeMC";
/* /*
Generated class for the ExerciseProvider provider. Generated class for the ExerciseProvider provider.
...@@ -22,7 +21,7 @@ export class ExerciseProvider { ...@@ -22,7 +21,7 @@ export class ExerciseProvider {
phenomenon: Phenomenon.pos, phenomenon: Phenomenon.pos,
value: PartOfSpeech.conjunction value: PartOfSpeech.conjunction
}), }),
feedback: new Feedback() feedback: new Feedback({general: "", incorrect: "", partiallyCorrect: "", correct: ""})
}); });
public annisResponse: AnnisResponse; public annisResponse: AnnisResponse;
public MCapiExerciseUrlString: string; public MCapiExerciseUrlString: string;
......
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