From ef5c3cf4f38370c5865a35ef2066d93db44726cd Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Mon, 21 Sep 2020 05:50:07 +0100 Subject: [PATCH] fix: update the API reference for inheritAttrs --- src/api/options-misc.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/options-misc.md b/src/api/options-misc.md index 55cd1e415e..bd08b3649f 100644 --- a/src/api/options-misc.md +++ b/src/api/options-misc.md @@ -22,14 +22,13 @@ By default, parent scope attribute bindings that are not recognized as props will "fallthrough". This means that when we have a single-root component, these bindings will be applied to the root element of the child component as normal HTML attributes. When authoring a component that wraps a target element or another component, this may not always be the desired behavior. By setting `inheritAttrs` to `false`, this default behavior can be disabled. The attributes are available via the `$attrs` instance property and can be explicitly bound to a non-root element using `v-bind`. - Note: this option does **not** affect `class` and `style` bindings. - - **Usage:** ```js app.component('base-input', { inheritAttrs: false, props: ['label', 'value'], + emits: ['input'], template: `