I recently got a library in Javascript and I have some code which have the following format:
file: abc1.js
export default {
props: { /*some lines*/ }
data() {
return {
field1: 'value1',
field2: 'value2'
}
}
computed: { /*some lines*/ }
config() {
/* some lines /*
return {
'abc.abc1' : function(var1) {
// How to access these lines?
// some code1
// some code2
}
'def.def1' : function(var2) {
// some code3
// some code4
}
}
}
}
And I would like to make a call from here:
<html>
<body>
<a href='#' onclick='call-to-function-abc.abc1()' /> // How??
</body>
</html>
to the piece of code where abc.abc1
is. How can I do that?