You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/patterns/README.md
+66-16Lines changed: 66 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -766,7 +766,7 @@ export default Mouse;
766
766
-[Leveraging Render Props in Vue](https://medium.com/@dillonchanis/leveraging-render-props-in-vue-7eb9a19c262d)
767
767
-[Use a Vue.js Render Prop!](https://medium.com/js-dojo/use-a-vue-js-render-prop-98880bc44e05)
768
768
769
-
## Passing Props
769
+
## Passing Props & Listeners
770
770
771
771
Sometimes, you may want to pass props and listeners to child component without having to declare all child component's props.
772
772
You can bind `$attrs` and `$listeners` in child component and set [`inheritAttrs` to `false`](https://vuejs.org/v2/api/#inheritAttrs) (otherwise both, `div` and `child-component` will receive the attributes)
@@ -857,29 +857,37 @@ With above example component hierarchy, in order to derive data from `parent-com
0 commit comments