@@ -123,12 +123,12 @@ Registers a global component if passing both a name string and a component defin
123123 const app = createApp({})
124124
125125 // register an options object
126- app.component('my-component ', {
126+ app.component('MyComponent ', {
127127 /* ... */
128128 })
129129
130130 // retrieve a registered component
131- const MyComponent = app.component('my-component ')
131+ const MyComponent = app.component('MyComponent ')
132132 ` ` `
133133
134134- ** See also ** [Component Registration ](/ guide / components / registration )
@@ -156,17 +156,17 @@ Registers a global custom directive if passing both a name string and a directiv
156156 })
157157
158158 // register (object directive)
159- app.directive('my-directive ', {
159+ app.directive('myDirective ', {
160160 /* custom directive hooks */
161161 })
162162
163163 // register (function directive shorthand)
164- app.directive('my-directive ', () => {
164+ app.directive('myDirective ', () => {
165165 /* ... */
166166 })
167167
168168 // retrieve a registered directive
169- const myDirective = app.directive('my-directive ')
169+ const myDirective = app.directive('myDirective ')
170170 ` ` `
171171
172172- ** See also ** [Custom Directives ](/ guide / reusability / custom - directives )
@@ -636,13 +636,13 @@ Configure a prefix for all IDs generated via [useId()](/api/composition-api-help
636636- **Example**
637637
638638 ` ` ` js
639- app .config .idPrefix = ' my-app '
639+ app .config .idPrefix = ' myApp '
640640 ` ` `
641641
642642 ` ` ` js
643643 // in a component:
644- const id1 = useId () // 'my-app :0'
645- const id2 = useId () // 'my-app :1'
644+ const id1 = useId () // 'myApp :0'
645+ const id2 = useId () // 'myApp :1'
646646 ` ` `
647647
648648## app.config.throwUnhandledErrorInProduction <sup class="vt-badge" data-text="3.5+" /> {#app-config-throwunhandlederrorinproduction}
0 commit comments