From ebdb0382740b4f94d660a55f365e3aa4e00b63ca Mon Sep 17 00:00:00 2001 From: GaryO Date: Wed, 16 Sep 2020 17:25:13 -0400 Subject: [PATCH 1/2] Note that props can be accessed in template directly In "Usage with Templates" the doc shows how props of the object returned from `setup` can be used directly in the template, but I didn't find anywhere else in the composition-api doc where it says that props can also be used directly. This seemed like as good a place as any to add that, since that's where I was looking for it first :-). --- src/guide/composition-api-setup.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/guide/composition-api-setup.md b/src/guide/composition-api-setup.md index 775141589f..61ad19c9f2 100644 --- a/src/guide/composition-api-setup.md +++ b/src/guide/composition-api-setup.md @@ -99,19 +99,19 @@ In other words, you **will not have access** to the following component options: ## Usage with Templates -If `setup` returns an object, the properties on the object can be accessed in the component's template: +If `setup` returns an object, the properties on the object can be accessed in the component's template, as can the properties of the `props` passed in to `setup`: ```vue-html