<div id="app">
  <textarea v-model="content"></textarea>
  <pre>{{ content }}</pre>
</div>
var app = new Vue({
  el: "#app",
  data: {
    content: "Hello\nWorld"
  }
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.jsdelivr.net/npm/vue/dist/vue.js