V Slots App

You’re browsing the documentation for v2.x and earlier. For v3.x, click here.

Base Example

New customer offer: Bet €/£10 Get €/£50 + 30 Free Spins, T&C's Apply Join Betfair Bingo today to play the latest 90-ball, 80-ball and 75-ball bingo games.

Here’s an example of a Vue component:

Join Lotsa Slots - Free Vegas Casino Slot Machines and start spinning free slots! If you like apps that constantly give you updated free content, you’ll enjoy Lotsa Slots. This slot games online. Epic Jackpot Slots. 61,663 likes 22 talking about this. 100,000,000 FREE COINS FOR NEW PLAYERS!

Components are reusable Vue instances with a name: in this case, <button-counter>. We can use this component as a custom element inside a root Vue instance created with new Vue:

The above is made possible by Vue’s <component> element with the is special attribute:

In the example above, currentTabComponent can contain either:

Template V-slot Append

  • the name of a registered component, or
  • a component’s options object

See this example to experiment with the full code, or this version for an example binding to a component’s options object, instead of its registered name.

Keep in mind that this attribute can be used with regular HTML elements, however they will be treated as components, which means all attributes will be bound as DOM attributes. For some properties such as value to work as you would expect, you will need to bind them using the .prop modifier.

That’s all you need to know about dynamic components for now, but once you’ve finished reading this page and feel comfortable with its content, we recommend coming back later to read the full guide on Dynamic & Async Components.

Quasar V-slot Append

DOM Template Parsing Caveats

Some HTML elements, such as <ul>, <ol>, <table> and <select> have restrictions on what elements can appear inside them, and some elements such as <li>, <tr>, and <option> can only appear inside certain other elements.

This will lead to issues when using components with elements that have such restrictions. For example:

The custom component <blog-post-row> will be hoisted out as invalid content, causing errors in the eventual rendered output. Fortunately, the is special attribute offers a workaround:

It should be noted that this limitation does not apply if you are using string templates from one of the following sources:

  • String templates (e.g. template: '...')

That’s all you need to know about DOM template parsing caveats for now – and actually, the end of Vue’s Essentials. Congratulations! There’s still more to learn, but first, we recommend taking a break to play with Vue yourself and build something fun.

Once you feel comfortable with the knowledge you’ve just digested, we recommend coming back to read the full guide on Dynamic & Async Components, as well as the other pages in the Components In-Depth section of the sidebar.

← Form Input BindingsComponent Registration →
AppendSlots
Caught a mistake or want to contribute to the documentation? Edit this on GitHub! Deployed on Netlify .