Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 4, 2019
1 parent e579d45 commit f78d749
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ export default {
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<div
id="container"
style="width:800px;height:600px;border:1px solid grey"
></div>
<div id="app"></div>

<script src="monaco-editor/min/vs/loader.js"></script>
<script src="https://unpkg.com/vue"></script>
Expand All @@ -88,7 +85,14 @@ export default {
require.config({ paths: { vs: 'monaco-editor/min/vs' } })
new Vue({
template: `<monaco-editor v-model="code" language="javascript" :amdRequire="amdRequire" />`,
el: '#app',
template: `
<monaco-editor
style="width:800px;height:600px;border:1px solid grey"
v-model="code"
language="javascript"
:amdRequire="amdRequire"
/>`,
data: {
code: 'const noop = () => {}'
},
Expand Down

0 comments on commit f78d749

Please sign in to comment.