I need quick help regarding calling a function within a function using Magento knockout js, I have tried this
define([
'ko',
'uiComponent'
], function (ko, Component) {
'use strict';
return Component.extend({
initialize: function () {
//initialize parent Component
this._super();
},
testfunctionout: function() {
var self = this;
console.log(' in testfunctionout');
self.testfunctionin();
},
testfunctionin: function() {
console.log(' in testfunctionin');
}
});
});
Can anyone help me out? Thanks in advance.
testfunctionout
function?