Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ochairo authored Mar 30, 2024
1 parent 81d4f29 commit 5629c05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ You have multiple options for development.
## Development sample

Component

```ts
class TitleComponent extends BaseComponent {
// sample.component.ts
class SampleComponent extends BaseComponent {
private pageName: string = "";
constructor() {
Expand All @@ -154,6 +154,6 @@ class TitleComponent extends BaseComponent {
onDestroy() { ... }
}
customElements.define("title-component", TitleComponent);
export default TitleComponent;
customElements.define("sample-component", SampleComponent);
export default SampleComponent;
```

0 comments on commit 5629c05

Please sign in to comment.