-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
I'm not able to access global functions in the markup of a component.
var mySingleton = { myFunction : function() { } }
<my_component v-on:click="mySingleton.myFunction()"></my_component>
mySingleton will be UNDEFINED because of:
(function(scope /**/) { return scope.window.mySingleton.myFunction(); })
If I try to access via
<my_component
v-on:click="window.mySingleton.myFunction()""></my_component>`
It is still UNDEFINED because of:
(function(scope /**/) { return scope.window.mySingleton.myFunction(); })
Shouldn't at least case 2 work so that vue does not prepend scope.
because I try to access window.
?
WofWca
Metadata
Metadata
Assignees
Labels
No labels