From 85f34016029dd678178ccc9f138dbed2a59d4ccc Mon Sep 17 00:00:00 2001 From: John Jenkins Date: Thu, 21 Nov 2024 23:21:04 +0000 Subject: [PATCH] Update properties.md --- docs/components/properties.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/components/properties.md b/docs/components/properties.md index 3737b7944..583414ba3 100644 --- a/docs/components/properties.md +++ b/docs/components/properties.md @@ -984,9 +984,9 @@ console.log(cmp.isComplete); // it prints 'false' import { Component, Prop, h } from '@stencil/core'; @Component({ - tag: 'todo-list-item', + tag: 'get-set-props', }) -export class ToDoListItem { +export class GetSetProps { // A read-only prop private internalValue = 'should not change'; @Prop() @@ -1000,7 +1000,7 @@ export class ToDoListItem { } set validatedProp (incomingDodgyValue: any) { if (['this', 'or maybe this'].includes(incomingDodgyValue)) { - this.safeValue = incomingDodgyValue + this.safeValue = incomingDodgyValue; } }