Skip to content

Commit

Permalink
use PascalCase (#2463)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-es authored Jan 5, 2025
1 parent 05a23e4 commit c3f091b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/api/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@
const app = createApp({})
// オプションオブジェクトを登録します。
app.component('my-component', {
app.component('MyComponent', {
/* ... */
})
// 登録されたコンポーネントを取得します。
const MyComponent = app.component('my-component')
const MyComponent = app.component('MyComponent')
```

- **参照** [コンポーネントの登録](/guide/components/registration)
Expand Down Expand Up @@ -156,17 +156,17 @@
})
// 登録(オブジェクトディレクティブ)
app.directive('my-directive', {
app.directive('myDirective', {
/* カスタムディレクティブのフック */
})
// 登録(関数ディレクティブの省略記法)
app.directive('my-directive', () => {
app.directive('myDirective', () => {
/* ... */
})
// 登録済ディレクティブの取得
const myDirective = app.directive('my-directive')
const myDirective = app.directive('myDirective')
```

- **参照** [カスタムディレクティブ](/guide/reusability/custom-directives)
Expand Down Expand Up @@ -634,12 +634,12 @@ Vue からの実行時警告に対して、カスタムハンドラーを割り
- ****

```js
app.config.idPrefix = 'my-app'
app.config.idPrefix = 'myApp'
```
```js
// コンポーネント内:
const id1 = useId() // 'my-app:0'
const id2 = useId() // 'my-app:1'
const id1 = useId() // 'myApp:0'
const id2 = useId() // 'myApp:1'
```

## app.config.throwUnhandledErrorInProduction <sup class="vt-badge" data-text="3.5+" /> {#app-config-throwunhandlederrorinproduction}
Expand Down

0 comments on commit c3f091b

Please # to comment.