component.prototype. functions not accessible inside content blocks
pahans opened this issue · 2 comments
pahans commented
I have following nested components inside my code
{{#render component="loading" isLoading=stateFn$isProfileLoading}}
{{>render component="hbar"
onSelect=action$onHarbarSelect
}}
{{/render}}
when action onHarbarSelect is triggered
component.prototype.getSortedValueType = function () {
...
};
component.action.onHarbarSelect = function(id) {
console.log(this.getSortedValueType)
};
console.log about prints undefined
for above code. without the content block its working fine.
arunoda commented
Okay. Seems like contentBlock and scope issue. It'll have a check.