Skip to content

Commit 8934766

Browse files
author
Robert Jackson
committed
Bring back basic JavaScript summary of GlimmerComponent base class.
1 parent c43bdd4 commit 8934766

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

guides/release/components/defining-a-component.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,21 @@ Events](../actions-and-events).
369369

370370
#### Component Hooks and Properties
371371

372+
Components have a very small class signature:
373+
374+
```js
375+
class GlimmerComponent {
376+
isDestroying = false;
377+
isDestroyed = false;
378+
379+
constructor(owner, args) {
380+
this.args = args;
381+
}
382+
383+
willDestroy() {}
384+
}
385+
```
386+
372387
The component class has 3 properties:
373388

374389
- `args`: The arguments that were passed to the component

0 commit comments

Comments
 (0)