mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 06:01:56 +00:00
Implement webide file changing with poc text input
This commit is contained in:
parent
451ee47825
commit
a9d2dd57bc
@ -1,3 +1,6 @@
|
|||||||
|
<input [(ngModel)]="filename">
|
||||||
|
<button (click)="selectCode(); requestCode()" type="submit" class="btn btn-primary">Select file</button>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
ace-editor
|
ace-editor
|
||||||
[(text)]="code"
|
[(text)]="code"
|
||||||
|
@ -44,4 +44,10 @@ export class WebideComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selectCode() {
|
||||||
|
this.webSocketService.send(this.anchor_id, {
|
||||||
|
'command': 'select',
|
||||||
|
'filename': this.filename
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user