Monaco Editor with Angular 9 doesn't show up

Viewed 4242
1 Answers

You are doing fine, you just missed the content of both css files.

style.css:

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

app.component.css:

h1 {
  margin: 15px;
  color: darkblue;
  height: 37px;
}
ngx-monaco-editor {
  height: calc(100% - 100px);
  width: 100%;
  padding: 15px;
}

Here is the working version of your Stackblitz.

Note: You have linked only the result of the stackblitz, not the stackblitz itself. With this it is hard to find your code.

Related