Skip to content

Commit c3f091b

Browse files
authored
use PascalCase (#2463)
1 parent 05a23e4 commit c3f091b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/api/application.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@
123123
const app = createApp({})
124124
125125
// オプションオブジェクトを登録します。
126-
app.component('my-component', {
126+
app.component('MyComponent', {
127127
/* ... */
128128
})
129129
130130
// 登録されたコンポーネントを取得します。
131-
const MyComponent = app.component('my-component')
131+
const MyComponent = app.component('MyComponent')
132132
```
133133

134134
- **参照** [コンポーネントの登録](/guide/components/registration)
@@ -156,17 +156,17 @@
156156
})
157157
158158
// 登録(オブジェクトディレクティブ)
159-
app.directive('my-directive', {
159+
app.directive('myDirective', {
160160
/* カスタムディレクティブのフック */
161161
})
162162
163163
// 登録(関数ディレクティブの省略記法)
164-
app.directive('my-directive', () => {
164+
app.directive('myDirective', () => {
165165
/* ... */
166166
})
167167
168168
// 登録済ディレクティブの取得
169-
const myDirective = app.directive('my-directive')
169+
const myDirective = app.directive('myDirective')
170170
```
171171

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

636636
```js
637-
app.config.idPrefix = 'my-app'
637+
app.config.idPrefix = 'myApp'
638638
```
639639
```js
640640
// コンポーネント内:
641-
const id1 = useId() // 'my-app:0'
642-
const id2 = useId() // 'my-app:1'
641+
const id1 = useId() // 'myApp:0'
642+
const id2 = useId() // 'myApp:1'
643643
```
644644

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

0 commit comments

Comments
 (0)