我看到这个 StackOverflow 问题显示了如何绑定到包含函数的字段:
@NgComponent(
selector: 'mycomp',
publishAs: 'ctrl',
map: const {
'myfunc' :'&myfunc'
}
)
class MyComponent {
Function myfunc;
但是,建议使用注解来声明绑定哪些字段,以及如何绑定。我看到@NgOneWay
( =>
) 和其他人,但我没有看到&myfunc
.
我应该使用什么注释?