Skip to content

Commit 23bcb4f

Browse files
committed
Replace vm variable with this.
1 parent 4c4c081 commit 23bcb4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Vue.use(VuejsDialog)
2020
```javascript
2121
// Anywhere in your Vuejs App.
2222

23-
vm.$dialog.confirm('Please confirm to continue')
23+
this.$dialog.confirm('Please confirm to continue')
2424
.then(function () {
2525
console.log('Clicked on proceed')
2626
})
@@ -34,7 +34,7 @@ vm.$dialog.confirm('Please confirm to continue')
3434
```javascript
3535
// Anywhere in your Vuejs App.
3636

37-
vm.$dialog.confirm("If you delete this record, it'll be gone forever.", {
37+
this.$dialog.confirm("If you delete this record, it'll be gone forever.", {
3838
loader: true // default: false - when set to true, the proceed button shows a loader when clicked.
3939
// And a dialog object will be passed to the then() callback
4040
})
@@ -72,7 +72,7 @@ let options = {
7272
clicks: 3, // for soft confirm, user will be asked to click on "proceed" btn 3 times before actually proceeding
7373
};
7474

75-
vm.$dialog.confirm(message, options)
75+
this.$dialog.confirm(message, options)
7676
.then(function () {
7777
// This will be triggered when user clicks on proceed
7878
})

0 commit comments

Comments
 (0)