Skip to content

Commit 73948be

Browse files
patrick-steelechrisvfritz
authored andcommitted
Fix variable reference in $mount sample code. (#501)
1 parent d1c4daf commit 73948be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
11761176

11771177
// or, render off-document and append afterwards:
11781178
var component = new MyComponent().$mount()
1179-
document.getElementById('app').appendChild(vm.$el)
1179+
document.getElementById('app').appendChild(component.$el)
11801180
```
11811181

11821182
- **See also:**

0 commit comments

Comments
 (0)