{{fileContents()}}
diff --git a/src/app/editor/editor.component.ts b/src/app/editor/editor.component.ts
index 822469b..1dcc59e 100644
--- a/src/app/editor/editor.component.ts
+++ b/src/app/editor/editor.component.ts
@@ -1,23 +1,32 @@
import { CommonModule } from '@angular/common';
-import { Component, ElementRef, effect, input, viewChild } from '@angular/core';
-import { FormsModule } from '@angular/forms';
+import {
+ Component,
+ ElementRef,
+ effect,
+ input,
+ signal,
+ viewChild,
+} from '@angular/core';
import hljs from 'highlight.js/lib/core';
import { ProtoMessage } from '../model/proto-message.model';
-import { ProtoDefinitionService } from '../proto-definition.service';
+import { ProtoFieldComponent } from '../proto-field/proto-field.component';
@Component({
selector: 'app-editor',
standalone: true,
- imports: [CommonModule, FormsModule],
+ imports: [CommonModule, ProtoFieldComponent],
templateUrl: './editor.component.html',
styleUrl: './editor.component.scss',
})
export class EditorComponent {
+ // TODO: This needs to be reworked so we have a local property and implement some kind of auto-save
fileContents = input