I have a component MyComp and I would like to pass a function to it as parameter. More precisely I would like to do something like that:
dart component file:
@NgComponent(
selector: 'mycomp',
publishAs: 'ctrl',
map: const {
'myfunc' :'=> myfunc'
}
)
class MyComponent {
Function myfunc;
....
myfunc();
}
html:
<mycomp myfunc="ctrl.myfunc"></button-list>
The problem is that myfunc is null in the component. Do I miss something? How can I do that?