From c7e05b6fe95782ac66b6b4a168cbe3d2b327fb9b Mon Sep 17 00:00:00 2001 From: sharvilak Date: Fri, 3 Apr 2020 23:14:53 +0530 Subject: [PATCH] Update README.md for template-props added missing information in docs related to template-props --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c65c923..2cdc562 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,13 @@ export default { ` ``` +**Example with ```template-props``` :** + +In case you would like to pass the props (received from parent component or scoped slots) then you can pass it to ```template-props```. By default v-runtime-template only looks into the reactive data properties registered inside your data( ) hook. +```html + +``` + ### v-runtime-template VS dynamic components (``) Dynamic components have somewhat different goal: to render a component dynamically by binding it to the `is` prop. Although, these components are usually pre-compiled. However, the goal of v-runtime-template can be achieved just by using the component options object form of dynamic components.