Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
SurveyKo.JsonObject.metaData.addProperty(
"questionbase",
"popupdescription:text"
);
SurveyKo.JsonObject.metaData.addProperty("page", "popupdescription:text");
let options = { showEmbededSurveyTab: true, generateValidJSON: true };
this.surveyCreator = new SurveyCreator.SurveyCreator(
"surveyCreatorContainer",
options
);
this.surveyCreator.text = JSON.stringify(this.json);
this.surveyCreator.saveSurveyFunc = this.saveMySurvey;
}
ngOnInit() {
SurveyKo.JsonObject.metaData.addProperty(
"questionbase",
"popupdescription:text"
);
SurveyKo.JsonObject.metaData.addProperty("page", "popupdescription:text");
let options = { showEmbededSurveyTab: true, generateValidJSON: true };
this.surveyCreator = new SurveyCreator.SurveyCreator(
"surveyCreatorContainer",
options
);
this.surveyCreator.text = JSON.stringify(this.json);
this.surveyCreator.saveSurveyFunc = this.saveMySurvey;
}