From c31fe1ed350d47e6e60d6dfbb6460dbeb6011f74 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 7 Jun 2023 16:53:48 -0400 Subject: [PATCH] update template --- scripts/plop/templates/component/component.hbs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/plop/templates/component/component.hbs b/scripts/plop/templates/component/component.hbs index 98fcc8fa9..47154f274 100644 --- a/scripts/plop/templates/component/component.hbs +++ b/scripts/plop/templates/component/component.hbs @@ -32,10 +32,9 @@ export default class {{ properCase tag }} extends ShoelaceElement { /** An example attribute. */ @property() attr = 'example'; - @watch('someProperty') - doSomething() { - // Example event - this.emit('sl-event-name'); + @watch('example') + handleExampleChange() { + // do something } render() {