Skip to content

Commit 001d4a6

Browse files
Merge remote-tracking branch 'origin/upstream'
2 parents 0d6ff17 + 48e2de2 commit 001d4a6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/application.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@
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
- **مشاهده بیشتر** [ثبت المان](/guide/components/registration)
@@ -156,17 +156,17 @@
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
- **مشاهده بیشتر** [دایرکتیوهای شخصی سازی شده](/guide/reusability/custom-directives)
@@ -632,13 +632,13 @@ console.log(app.config)
632632
- **مثال**
633633

634634
```js
635-
app.config.idPrefix = 'my-app'
635+
app.config.idPrefix = 'myApp'
636636
```
637637

638638
```js
639639
// in a component:
640-
const id1 = useId() // 'my-app:0'
641-
const id2 = useId() // 'my-app:1'
640+
const id1 = useId() // 'myApp:0'
641+
const id2 = useId() // 'myApp:1'
642642
```
643643

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

0 commit comments

Comments
 (0)