|
|
|
@ -63,7 +63,7 @@ export class EditorComponent implements OnInit{
|
|
|
|
|
// Le code à exécuter est le contenu de l'éditeur
|
|
|
|
|
const codeToExecute = this.editorContent;
|
|
|
|
|
|
|
|
|
|
this.codeExecutionService.executeCode(codeToExecute).subscribe(
|
|
|
|
|
this.codeExecutionService.executeCode(codeToExecute, this.mode).subscribe(
|
|
|
|
|
(response) => {
|
|
|
|
|
console.log('Réponse du serveur:', response);
|
|
|
|
|
console.log('Code qui va être exécuté:', codeToExecute);
|
|
|
|
|