Home / File/ index.html — vue Source File

index.html — vue Source File

Architecture documentation for index.html, a html file in the vue codebase.

Entity Profile

Source Code

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Vue.js markdown editor example</title>
    <link rel="stylesheet" href="style.css">
    <script src="../../../node_modules/marked/marked.min.js"></script>
    <script src="../../../node_modules/lodash/lodash.min.js"></script>
    <!-- Delete ".min" for console warnings in development -->
    <script src="../../../dist/vue.min.js"></script>
  </head>
  <body>

    <div id="editor">
      <textarea :value="input" @input="update"></textarea>
      <div v-html="compiledMarkdown"></div>
    </div>

    <script>
      new Vue({
        el: '#editor',
        data: {
          input: '# hello'
        },
        computed: {
          compiledMarkdown: function () {
            return marked.marked(this.input)
          }
        },
        methods: {
          update: _.debounce(function (e) {
            this.input = e.target.value
          }, 300)
        }
      })
    </script>

  </body>
</html>

Frequently Asked Questions

What does index.html do?
index.html is a source file in the vue codebase, written in html.
Where is index.html in the architecture?
index.html is located at examples/classic/markdown/index.html (directory: examples/classic/markdown).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free