Skip to content

Commit 46432f8

Browse files
committed
Fix: Multi library namespace for installation via html script tag
1 parent 441e189 commit 46432f8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
4. If loader is enabled globally, and a dialog is triggered via a directive without a callback, the loader is ignored for clicks on proceed
2323
5. Custom class injection on parent node (see issue [#25](https://github.com/Godofbrowser/vuejs-dialog/issues/25))
2424
6. Ability to register custom views. This allows for custom logic, custom buttons, etc (see issue [#13](https://github.com/Godofbrowser/vuejs-dialog/issues/13), [#14](https://github.com/Godofbrowser/vuejs-dialog/issues/14), [#33](https://github.com/Godofbrowser/vuejs-dialog/issues/33))
25+
7. For installation via __HTML script tag__
26+
* The library has been namespaced as it has been split into two. The main library which is the plugin and the mixin which is useful in custom components
27+
* To this effect, the new way to install the plugin is slightly dufferent: `window.Vue.use(VuejsDialog.main.default)`
28+
* And the mixin can be added to components like so: `mixins: [VuejsDialog.mixin.default, ...otherMixins]`
2529

2630
## Installation
2731

@@ -37,7 +41,7 @@
3741

3842
<script>
3943
// Tell Vue to install the plugin.
40-
window.Vue.use(VuejsDialog.default)
44+
window.Vue.use(VuejsDialog.main.default)
4145
</script>
4246
```
4347
#### Package Manager

0 commit comments

Comments
 (0)