Skip to content

Commit

Permalink
Update properties.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjenkins authored Nov 21, 2024
1 parent 8dc8382 commit 85f3401
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/components/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -1000,7 +1000,7 @@ export class ToDoListItem {
}
set validatedProp (incomingDodgyValue: any) {
if (['this', 'or maybe this'].includes(incomingDodgyValue)) {
this.safeValue = incomingDodgyValue
this.safeValue = incomingDodgyValue;
}
}

Expand Down

0 comments on commit 85f3401

Please sign in to comment.