Skip to content

Commit 3d96b74

Browse files
ferk6asdras
authored andcommitted
Document gotcha with :is and DOM props (#2402)
1 parent 3a038aa commit 3d96b74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/v2/guide/components.md

+2
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,8 @@ In the example above, `currentTabComponent` can contain either:
603603

604604
See [this fiddle](https://jsfiddle.net/chrisvfritz/o3nycadu/) to experiment with the full code, or [this version](https://jsfiddle.net/chrisvfritz/b2qj69o1/) for an example binding to a component's options object, instead of its registered name.
605605

606+
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](../api/#v-bind).
607+
606608
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](components-dynamic-async.html).
607609

608610
## DOM Template Parsing Caveats

0 commit comments

Comments
 (0)