File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ Vue.prototype.$myInjectedFunction = (message: string) => console.log(message)
26
26
``` html
27
27
<template >
28
28
<div >
29
- <button @click =" $myInjectedFunction()" >Clique em mim !</button >
30
- <button @click =" someMethod" >Clique em mim !</button >
29
+ <button @click =" $myInjectedFunction()" >Clique em mim!</button >
30
+ <button @click =" someMethod" >Clique em mim!</button >
31
31
</div >
32
32
</template >
33
33
@@ -36,7 +36,7 @@ import Vue from 'vue'
36
36
37
37
export default Vue .extend ({
38
38
mounted () {
39
- this .$myInjectedFunction (' funciondo em mounted' )
39
+ this .$myInjectedFunction (' funcionando em mounted' )
40
40
}
41
41
})
42
42
</script >
@@ -70,7 +70,7 @@ import Vue from 'vue'
70
70
71
71
export default Vue .extend ({
72
72
asyncData (context ) {
73
- context .$myInjectedFunction (' funciona no asyncData' )
73
+ context .$myInjectedFunction (' funcionando em asyncData' )
74
74
}
75
75
})
76
76
</script >
@@ -125,7 +125,7 @@ export default Vue.extend({
125
125
this .$myInjectedFunction (' funcionando em mounted' )
126
126
},
127
127
asyncData (context ) {
128
- context .app .$myInjectedFunction (' funcioando em asyncData' )
128
+ context .app .$myInjectedFunction (' funcionando em asyncData' )
129
129
}
130
130
})
131
131
</script >
You can’t perform that action at this time.
0 commit comments