diff --git a/scripts/plop/templates/component/component.hbs b/scripts/plop/templates/component/component.hbs index 98fcc8fa..47154f27 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() {