Use computed, not method so it is accessible
This commit is contained in:
parent
75ba2eac39
commit
da45855034
2 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,7 @@ class Flash implements FlashInterface {
|
|||
}
|
||||
|
||||
export const FlashMixin: ComponentOptions<Vue> = {
|
||||
methods: {
|
||||
computed: {
|
||||
'$flash': function () {
|
||||
return new Flash();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue