We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad60e93 commit 4dd36deCopy full SHA for 4dd36de
src/api/index.md
@@ -373,3 +373,30 @@ type: api
373
```
374
375
- **See also:** [Props](/guide/components.html#Props)
376
+
377
+### propsData
378
379
+> 1.0.22+
380
381
+- **Type:** `Object`
382
383
+- **Restriction:** only respected in instance creation via `new`.
384
385
+- **Details:**
386
387
+ Pass props to an instance during its creation. This is primarily intended to make unit testing easier.
388
389
+- **Example:**
390
391
+ ``` js
392
+ var Comp = Vue.extend({
393
+ props: ['msg'],
394
+ template: '<div>{{ msg }}</div>'
395
+ })
396
397
+ var vm = new Comp({
398
+ propsData: {
399
+ msg: 'hello'
400
+ }
401
402
+ ```
0 commit comments