Use computed, not method so it is accessible

This commit is contained in:
Dane Everitt 2018-12-30 12:27:18 -08:00
parent 75ba2eac39
commit da45855034
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@ class Flash implements FlashInterface {
}
export const FlashMixin: ComponentOptions<Vue> = {
methods: {
computed: {
'$flash': function () {
return new Flash();
}