Can A Vue Template Have Multiple Root Nodes (Fragments)?

added by JavaScript Kicks
9/12/2018 9:32:09 AM

573 Views

If you try to create a Vue template without a root node, such as this: You'll get a compilation and/or runtime error, as templates must have a single root element. Typically, you'll fix this problem by adding a "wrapper" div as a parent.


0 comments