Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mckabue/b9cad5915a38d3f77ed33843993674ef to your computer and use it in GitHub Desktop.
Save mckabue/b9cad5915a38d3f77ed33843993674ef to your computer and use it in GitHub Desktop.
`Vue.js Lessons and Features I would love to see` is a compilation of experiences from other similar frameworks. I really like the fact that vue.js keeps HTML as HTML, JavaScript as Javascript and CSS as CSS, Its flexible, Clean syntax, and its more of a library than a framework

Vue.js Lessons and Features I would love to see

Vue.js: Lessons

  1. el: can be string | HTMLElement, but never body or html
  2. Vue Global Components will not work in some html structure
  3. template: you can configure the directive prefix to start with data-
  4. templte: you cannot have more than one root node
  5. templates:no comments
  6. You cant edit </head> tag with vuejs, aleast not without a extra plugin
  7. dom: manual dom manipulation on an element inside vuejs el: element may not behave as you expect as it must first reflect on virtual dom
  8. performance: on every keystroke, the dom gets repplied; if you use methods they will be called that many times

Vue.js: Features i would love

  1. Comments Support
    • control flow (directives) as comment syntax (like knockoutjs - <!--ko if: value--><!--/ko-->)
    • ability to add normal HTML comments in templates to complement HTML
  2. Templates
    • templates with more than one root element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment